From 423d6485f8bab85c6cdce32a3e4dd0bc8021f011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Fri, 6 Dec 2024 10:45:20 -0800 Subject: [PATCH] services(xtts): default language to Language.EN --- CHANGELOG.md | 2 ++ examples/foundational/07i-interruptible-xtts.py | 1 - src/pipecat/services/xtts.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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, ):