This commit is contained in:
seven 2025-03-25 21:47:21 +08:00
parent ee2e447e42
commit 6fa047c07d

View file

@ -38,7 +38,7 @@ async def sendAudio(conn, audios):
for opus_packet in audios: for opus_packet in audios:
if count < 3: if count < 3:
await conn.websocket.send(opus_packet) await conn.websocket.send(opus_packet)
conn.logger.bind(tag=TAG).debug(f"预缓冲帧 {i}, 时间: {(time.perf_counter() - start_time) * 1000:.2f}ms") conn.logger.bind(tag=TAG).debug(f"预缓冲帧 {count}, 时间: {(time.perf_counter() - start_time) * 1000:.2f}ms")
else: else:
if conn.client_abort: if conn.client_abort:
return return