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
c1be248fa9
commit
d6d1e0d53b
1 changed files with 1 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ async def sendAudioStream(conn, audios):
|
||||||
|
|
||||||
# if isinstance(audios,types.GeneratorType):
|
# if isinstance(audios,types.GeneratorType):
|
||||||
if inspect.isasyncgen(audios):
|
if inspect.isasyncgen(audios):
|
||||||
|
conn.logger.bind(tag=TAG).info('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
|
||||||
count = 0
|
count = 0
|
||||||
async for opus_packet in audios:
|
async for opus_packet in audios:
|
||||||
if opus_packet.startswith(b'text:'):
|
if opus_packet.startswith(b'text:'):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue