Improve tts stream

This commit is contained in:
Xin Wang
2026-02-09 13:39:55 +08:00
parent 7df11dd846
commit 5349ed88e7
2 changed files with 56 additions and 20 deletions

View File

@@ -634,7 +634,6 @@ class DuplexPipeline:
break
await self.transport.send_audio(chunk.audio)
await asyncio.sleep(0.005) # Small delay to prevent flooding
except asyncio.CancelledError:
logger.debug("TTS sentence cancelled")
except Exception as e: