add:双向流tts结构改造,火山双向tts语音流式输入输出

This commit is contained in:
lizhongxiang
2025-03-31 15:15:59 +08:00
parent 264487574b
commit bb9df3f54c
8 changed files with 46 additions and 63 deletions
@@ -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