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
9858c7a5cf
commit
0cfc83bd32
1 changed files with 2 additions and 2 deletions
|
|
@ -611,10 +611,10 @@ class ConnectionHandler:
|
||||||
|
|
||||||
if hasattr(self.tts, 'provider_name') and self.tts.provider_name == 'linkerai' and 'double_stream' in self.tts.stream_mode:
|
if hasattr(self.tts, 'provider_name') and self.tts.provider_name == 'linkerai' and 'double_stream' in self.tts.stream_mode:
|
||||||
self.logger.bind(tag=TAG).info(f"self.tts.provider_name: { self.tts.provider_name} {self.tts.stream_mode}")
|
self.logger.bind(tag=TAG).info(f"self.tts.provider_name: { self.tts.provider_name} {self.tts.stream_mode}")
|
||||||
self.chat_double_stream(text)
|
self.chat_double_stream('你好')
|
||||||
else:
|
else:
|
||||||
self.logger.bind(tag=TAG).info(f"self.tts.provider_name: single_stream")
|
self.logger.bind(tag=TAG).info(f"self.tts.provider_name: single_stream")
|
||||||
self.chat(text)
|
self.chat('你好')
|
||||||
|
|
||||||
# After chat is complete, close the connection
|
# After chat is complete, close the connection
|
||||||
self.close_after_chat = True
|
self.close_after_chat = True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue