From 0c31b5ef19d21a190b6600d0e2366bb14f9713a9 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Wed, 15 Oct 2025 11:49:26 -0400 Subject: [PATCH] Add aggregate_sentences arg to ElevenLabsHttpTTSService --- CHANGELOG.md | 3 +++ src/pipecat/services/elevenlabs/tts.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 424d6a420..73a42dd22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added an `aggregate_sentences` arg in `ElevenLabsHttpTTSService`, where the + default value is True. + - The runner `--folder` argument now supports downloading files from subdirectories. diff --git a/src/pipecat/services/elevenlabs/tts.py b/src/pipecat/services/elevenlabs/tts.py index 1544e94be..a9bf65376 100644 --- a/src/pipecat/services/elevenlabs/tts.py +++ b/src/pipecat/services/elevenlabs/tts.py @@ -774,6 +774,7 @@ class ElevenLabsHttpTTSService(WordTTSService): base_url: str = "https://api.elevenlabs.io", sample_rate: Optional[int] = None, params: Optional[InputParams] = None, + aggregate_sentences: Optional[bool] = True, **kwargs, ): """Initialize the ElevenLabs HTTP TTS service. @@ -786,10 +787,11 @@ class ElevenLabsHttpTTSService(WordTTSService): base_url: Base URL for ElevenLabs HTTP API. sample_rate: Audio sample rate. If None, uses default. params: Additional input parameters for voice customization. + aggregate_sentences: Whether to aggregate sentences within the TTSService. **kwargs: Additional arguments passed to the parent service. """ super().__init__( - aggregate_sentences=True, + aggregate_sentences=aggregate_sentences, push_text_frames=False, push_stop_frames=True, sample_rate=sample_rate,