TTSService: allow passing multiple text filters and aggregators

This commit is contained in:
Aleix Conchillo Flaqué
2025-03-18 17:31:01 -07:00
parent 71a38a120e
commit 514ecda755
5 changed files with 61 additions and 20 deletions

View File

@@ -16,8 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added new `BaseTextAggregator`. Text aggregators are used by the TTS service
to aggregate LLM tokens and decide when the aggregated text should be pushed
to the TTS service. It also allows for the text to be manipulated while it's
being aggregated.
to the TTS service. They also allow for the text to be manipulated while it's
being aggregated. Multiple text aggregators can be passed with
`text_aggregators` to the TTS service.
- Added new `UltravoxSTTService`.
(see https://github.com/fixie-ai/ultravox)
@@ -113,6 +114,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated the default mode for `CartesiaTTSService` and
`CartesiaHttpTTSService` to `sonic-2`.
### Deprecated
- `TTSService` parameter `text_filter` is now deprecated, use `text_filters`
instead which is now a list. This allows passing multiple filters that will be
executed in order.
### Removed
- Removed deprecated `audio.resample_audio()`, use `create_default_resampler()`