This commit is contained in:
seven 2025-03-25 23:34:46 +08:00
parent 52c9d55963
commit 739d2bdc2a
2 changed files with 2 additions and 2 deletions

View file

@ -311,7 +311,7 @@ TTS:
response_format: 'opus' response_format: 'opus'
access_token: '123' access_token: '123'
sample_rate: 16000 sample_rate: 16000
instruct_text: "普通话" instruct_text: 普通话
CosyVoiceSiliconflow: CosyVoiceSiliconflow:
type: siliconflow type: siliconflow
# 硅基流动TTS # 硅基流动TTS

View file

@ -56,7 +56,7 @@ class TTSProvider(TTSProviderBase):
if os.path.exists(audio_file_path): if os.path.exists(audio_file_path):
fsize = os.path.getsize(audio_file_path) fsize = os.path.getsize(audio_file_path)
else: else:
return return None,None
if fsize < 1000: if fsize < 1000:
duration = 100 duration = 100