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
e35459aed2
commit
a8115033be
1 changed files with 2 additions and 0 deletions
|
|
@ -109,6 +109,8 @@ class TTSProvider(TTSProviderBase):
|
||||||
opus_data = encoder.encode(np_frame.tobytes(), frame_size)
|
opus_data = encoder.encode(np_frame.tobytes(), frame_size)
|
||||||
opus_datas.append(opus_data)
|
opus_datas.append(opus_data)
|
||||||
return opus_datas, duration
|
return opus_datas, duration
|
||||||
|
else:
|
||||||
|
return None,None
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
config = {'access_token':'123',
|
config = {'access_token':'123',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue