mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
add
This commit is contained in:
parent
634e3c7625
commit
b2d37120ac
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ class TTSProvider(TTSProviderBase):
|
||||||
|
|
||||||
def audio_to_opus_data(self, audio_file_path):
|
def audio_to_opus_data(self, audio_file_path):
|
||||||
data = b''
|
data = b''
|
||||||
if os.path.exists('%s.linkerai'%audio_file_path):
|
if os.path.exists(audio_file_path):
|
||||||
with open(audio_file_path,encoding='utf-8') as f:
|
with open(audio_file_path,encoding='utf-8') as f:
|
||||||
data = f.read(10)
|
data = f.read(10)
|
||||||
if data.startswith('http_post'):
|
if data.startswith('http_post'):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue