services(xtts): default language to Language.EN
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -50,7 +50,6 @@ async def main():
|
||||
tts = XTTSService(
|
||||
aiohttp_session=session,
|
||||
voice_id="Claribel Dervla",
|
||||
language="en",
|
||||
base_url="http://localhost:8000",
|
||||
)
|
||||
|
||||
|
||||
@@ -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,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user