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
|
### 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.
|
||||||
|
|||||||
@@ -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",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user