Merge pull request #4433 from pipecat-ai/filipi/refactoring_elevenlabs

Refactoring ElevenLabs to send close_context as soon as the turn context is complete.
This commit is contained in:
Filipi da Silva Fuchter
2026-05-07 13:10:36 -03:00
committed by GitHub
2 changed files with 25 additions and 25 deletions

View File

@@ -0,0 +1 @@
- `ElevenLabsTTSService` now sends `close_context` to the server as soon as the turn is complete (on `on_turn_context_completed`) rather than waiting until all audio has finished playing back. The `isFinal` message from ElevenLabs is now used to signal `TTSStoppedFrame` and clean up the audio context, improving turn transition timing.