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
1a2b2569ab
commit
0a2e99168e
1 changed files with 1 additions and 1 deletions
|
|
@ -77,9 +77,9 @@ class TTSProvider(TTSProviderBase):
|
||||||
with open(audio_file_path,'rb') as f:
|
with open(audio_file_path,'rb') as f:
|
||||||
data = f.read(10)
|
data = f.read(10)
|
||||||
if data.startswith(b'http_post'):
|
if data.startswith(b'http_post'):
|
||||||
|
duration = 100
|
||||||
with open(audio_file_path,encoding='utf-8') as f:
|
with open(audio_file_path,encoding='utf-8') as f:
|
||||||
_ = f.read(10)
|
_ = f.read(10)
|
||||||
duration = 100
|
|
||||||
code = []
|
code = []
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
code.append(json.loads(line.strip()))
|
code.append(json.loads(line.strip()))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue