This commit is contained in:
seven 2025-03-29 18:34:57 +08:00
parent c1be248fa9
commit d6d1e0d53b

View file

@ -38,6 +38,7 @@ async def sendAudioStream(conn, audios):
# if isinstance(audios,types.GeneratorType):
if inspect.isasyncgen(audios):
conn.logger.bind(tag=TAG).info('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
count = 0
async for opus_packet in audios:
if opus_packet.startswith(b'text:'):