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
0a2e99168e
commit
ef8b05f8e9
2 changed files with 2 additions and 1 deletions
|
|
@ -311,6 +311,7 @@ TTS:
|
|||
# 天津话
|
||||
# 普通话
|
||||
# 文档地址:https://tts.linkerai.top/docs#/
|
||||
# 密匙获取:https://linkerai.top/
|
||||
type: linkerai
|
||||
api_url: https://tts.linkerai.top/tts
|
||||
voice: OUeAo1mhq6IBExi
|
||||
|
|
|
|||
|
|
@ -609,7 +609,7 @@ class ConnectionHandler:
|
|||
try:
|
||||
# Use the existing chat method
|
||||
|
||||
if hasattr(self.tts, 'provider_name') and self.tts.provider_name == 'linkerai' and self.tts.stream_mode == 'double_stream':
|
||||
if hasattr(self.tts, 'provider_name') and self.tts.provider_name == 'linkerai' and 'double_stream' in self.tts.stream_mode:
|
||||
self.chat_double_stream(text)
|
||||
else:
|
||||
self.chat(text)
|
||||
|
|
|
|||
Loading…
Reference in a new issue