diff --git a/CHANGELOG.md b/CHANGELOG.md index 85f1e20e5..f769f7255 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,8 @@ async def on_audio_data(processor, audio, sample_rate, num_channels): ### Changed +- `XTTSService` language now defaults to `Language.EN`. + - `SoundfileMixer` doesn't resample input files anymore to avoid startup delays. The sample rate of the provided sound files now need to match the sample rate of the output transport. diff --git a/examples/foundational/07i-interruptible-xtts.py b/examples/foundational/07i-interruptible-xtts.py index bc14c04a7..5bfe13b5c 100644 --- a/examples/foundational/07i-interruptible-xtts.py +++ b/examples/foundational/07i-interruptible-xtts.py @@ -50,7 +50,6 @@ async def main(): tts = XTTSService( aiohttp_session=session, voice_id="Claribel Dervla", - language="en", base_url="http://localhost:8000", ) diff --git a/src/pipecat/services/xtts.py b/src/pipecat/services/xtts.py index 73edb06ff..900701ffa 100644 --- a/src/pipecat/services/xtts.py +++ b/src/pipecat/services/xtts.py @@ -73,9 +73,9 @@ class XTTSService(TTSService): self, *, voice_id: str, - language: Language, base_url: str, aiohttp_session: aiohttp.ClientSession, + language: Language = Language.EN, sample_rate: int = 24000, **kwargs, ):