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
d6d1e0d53b
commit
9657ec3f89
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ async def sendAudioStream(conn, audios):
|
|||
conn.logger.bind(tag=TAG).info('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
|
||||
count = 0
|
||||
async for opus_packet in audios:
|
||||
if opus_packet.startswith(b'text:'):
|
||||
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'))
|
||||
continue
|
||||
if len(opus_packet) < 1:
|
||||
|
|
|
|||
Loading…
Reference in a new issue