Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added `pause_frame_processing` parameter to `CartesiaTTSService` to allow
disabling frame processing pausing during TTS generation.

- Added `wait_for_all` argument to the base `LLMService`. When enabled, this
ensures all function calls complete before returning results to the LLM (i.e.,
before running a new inference with those results).
Expand Down
4 changes: 3 additions & 1 deletion src/pipecat/services/cartesia/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def __init__(
params: Optional[InputParams] = None,
text_aggregator: Optional[BaseTextAggregator] = None,
aggregate_sentences: Optional[bool] = True,
pause_frame_processing: Optional[bool] = True,
**kwargs,
):
"""Initialize the Cartesia TTS service.
Expand All @@ -254,6 +255,7 @@ def __init__(
Use an LLMTextProcessor before the TTSService for custom text aggregation.

aggregate_sentences: Whether to aggregate sentences within the TTSService.
pause_frame_processing: Whether to pause processing frames while receiving audio.
**kwargs: Additional arguments passed to the parent service.
"""
# Aggregating sentences still gives cleaner-sounding results and fewer
Expand All @@ -269,7 +271,7 @@ def __init__(
super().__init__(
aggregate_sentences=aggregate_sentences,
push_text_frames=False,
pause_frame_processing=True,
pause_frame_processing=pause_frame_processing,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to add a constructor argument, we simply want to set this to False.

sample_rate=sample_rate,
text_aggregator=text_aggregator,
**kwargs,
Expand Down