mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
add:双向流tts结构改造,火山双向tts语音流式输入输出
This commit is contained in:
@@ -28,8 +28,6 @@ async def handleTextMessage(conn, message):
|
||||
if msg_json["state"] == "start":
|
||||
conn.client_have_voice = True
|
||||
conn.client_voice_stop = False
|
||||
# 打断,开启了行的对话,如果之前有tts存在,销毁掉重新建立tts
|
||||
await conn.init_and_reset_tts()
|
||||
elif msg_json["state"] == "stop":
|
||||
conn.client_have_voice = True
|
||||
conn.client_voice_stop = True
|
||||
|
||||
Reference in New Issue
Block a user