From 18f84042bafed45cbea491f90c28bcc6da6b27d1 Mon Sep 17 00:00:00 2001 From: seven Date: Sat, 29 Mar 2025 18:42:32 +0800 Subject: [PATCH] add --- main/xiaozhi-server/core/handle/sendAudioHandle.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/xiaozhi-server/core/handle/sendAudioHandle.py b/main/xiaozhi-server/core/handle/sendAudioHandle.py index 67f6168e8..fa4623757 100644 --- a/main/xiaozhi-server/core/handle/sendAudioHandle.py +++ b/main/xiaozhi-server/core/handle/sendAudioHandle.py @@ -43,8 +43,7 @@ async def sendAudioStream(conn, audios): async for opus_packet in audios: conn.logger.bind(tag=TAG).info(f'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,{type(opus_packet)},{opus_packet}') if isinstance(opus_packet,bytes) and opus_packet.startswith(b'text:'): - # await send_tts_message(conn, "sentence_start", opus_packet.replace(b'text:','').decode('utf-8')) - await send_tts_message(conn, "sentence_start", opus_packet) + await send_tts_message(conn, "sentence_start", opus_packet.replace(b'text:',b'').decode('utf-8')) continue if len(opus_packet) < 1: continue