services(xtts): default language to Language.EN

This commit is contained in:
Aleix Conchillo Flaqué
2024-12-06 10:45:20 -08:00
parent 3cb7829624
commit 423d6485f8
3 changed files with 3 additions and 2 deletions

View File

@@ -38,6 +38,8 @@ async def on_audio_data(processor, audio, sample_rate, num_channels):
### Changed ### Changed
- `XTTSService` language now defaults to `Language.EN`.
- `SoundfileMixer` doesn't resample input files anymore to avoid startup - `SoundfileMixer` doesn't resample input files anymore to avoid startup
delays. The sample rate of the provided sound files now need to match the delays. The sample rate of the provided sound files now need to match the
sample rate of the output transport. sample rate of the output transport.

View File

@@ -50,7 +50,6 @@ async def main():
tts = XTTSService( tts = XTTSService(
aiohttp_session=session, aiohttp_session=session,
voice_id="Claribel Dervla", voice_id="Claribel Dervla",
language="en",
base_url="http://localhost:8000", base_url="http://localhost:8000",
) )

View File

@@ -73,9 +73,9 @@ class XTTSService(TTSService):
self, self,
*, *,
voice_id: str, voice_id: str,
language: Language,
base_url: str, base_url: str,
aiohttp_session: aiohttp.ClientSession, aiohttp_session: aiohttp.ClientSession,
language: Language = Language.EN,
sample_rate: int = 24000, sample_rate: int = 24000,
**kwargs, **kwargs,
): ):