update: 阿里百炼流式TTS 减少调试日志显示

fix: 音频发送误差修正
This commit is contained in:
Sakura-RanChen
2025-09-16 17:07:00 +08:00
parent 334dfc7917
commit c2985c0db3
8 changed files with 601 additions and 11 deletions
@@ -114,6 +114,9 @@ async def sendAudio(conn, audios, frame_duration=60):
delay = expected_time - current_time
if delay > 0:
await asyncio.sleep(delay)
else:
# 纠正误差
flow_control["start_time"] += abs(delay)
if conn.conn_from_mqtt_gateway:
# 计算时间戳和序列号