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
52c9d55963
commit
739d2bdc2a
2 changed files with 2 additions and 2 deletions
|
|
@ -311,7 +311,7 @@ TTS:
|
|||
response_format: 'opus'
|
||||
access_token: '123'
|
||||
sample_rate: 16000
|
||||
instruct_text: "普通话"
|
||||
instruct_text: 普通话
|
||||
CosyVoiceSiliconflow:
|
||||
type: siliconflow
|
||||
# 硅基流动TTS
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class TTSProvider(TTSProviderBase):
|
|||
if os.path.exists(audio_file_path):
|
||||
fsize = os.path.getsize(audio_file_path)
|
||||
else:
|
||||
return
|
||||
return None,None
|
||||
|
||||
if fsize < 1000:
|
||||
duration = 100
|
||||
|
|
|
|||
Loading…
Reference in a new issue