You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to produce audio that switches between languages.
tts seems to split the paragraph at the correct point, however the audio output contains (what appears to be) Chinese words after the French sentence.
To Reproduce
tts --text "Translate this to french, How are you? (Comment ça va?)" --model_name "tts_models/multilingual/multi-dataset/xtts_v2" --speaker_idx "Annmarie Nele" --language_idx en --out_path speech1.wav
tts_models/multilingual/multi-dataset/xtts_v2 is already downloaded.
Using model: xtts
Text: Translate this to french, How are you? (Comment ça va?)
Text split into sentences.
Input: ['Translate this to french, How are you?', '(Comment ça va?)']
Processing time: 4.410
Real-time factor: 0.462
Saved TTS output to speech1.wav
XTTS wasn't trained on code-switched data, so the behaviour in that case is undefined and issues can be expected. You could dive into the XTTS code though and insert additional language tokens at the right points.
Describe the bug
I am trying to produce audio that switches between languages.
tts seems to split the paragraph at the correct point, however the audio output contains (what appears to be) Chinese words after the French sentence.
To Reproduce
Expected behavior
No response
Logs
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: