feat: 增加修改speaker_id接口
This commit is contained in:
1 parent
ce033dca2b
commit
30fdb9c6bd
5 files changed
+68
-5
No files matched your search
@@ -325,6 +325,7 @@ async def sct_llm_handler(ws,session_id,response_type,llm_info,tts_info,db,redis
|
||||
response_bytes = json.dumps(response_message, ensure_ascii=False).encode('utf-8')
|
||||
header = struct.pack('!II',len(response_bytes),len(audio))
|
||||
message_bytes = header + response_bytes + audio
|
||||
await ws.send_bytes(message_bytes)
|
||||
logger.debug(f"websocket返回: {sentence}")
|
||||
if is_end:
|
||||
logger.debug(f"llm返回结果: {llm_response}")
|
||||
|
||||
Reference in new issue
Block a user