This commit is contained in:
seven 2025-03-29 16:14:08 +08:00
parent 40a29f0fcc
commit 31060188a2

View file

@ -37,7 +37,7 @@ async def sendAudioStream(conn, audios):
play_position = 0 play_position = 0
# if isinstance(audios,types.GeneratorType): # if isinstance(audios,types.GeneratorType):
if inspect.isasyncgen(audios): if 1:#inspect.isasyncgen(audios):
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:'):