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
84c6d45af5
commit
1a2b2569ab
1 changed files with 0 additions and 1 deletions
|
|
@ -88,7 +88,6 @@ class TTSProvider(TTSProviderBase):
|
||||||
return self.yield_data(self.api_url,params=params,headers=headers),duration
|
return self.yield_data(self.api_url,params=params,headers=headers),duration
|
||||||
|
|
||||||
else: #兼容非流式音频播放
|
else: #兼容非流式音频播放
|
||||||
f.seek(0)
|
|
||||||
file_type = os.path.splitext(audio_file_path)[1]
|
file_type = os.path.splitext(audio_file_path)[1]
|
||||||
if file_type:
|
if file_type:
|
||||||
file_type = file_type.lstrip('.')
|
file_type = file_type.lstrip('.')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue