What's Changed
- Fetch all built-in speakers from API by @reuben in #2626
- fix typo by @vodiylik in #2647
- Port Fairseq TTS models by @erogol in #2628
New Contributors
Full Changelog: v0.14.0...v0.14.1
Example text to speech using Fairseq models in ~1100 languages 🤯.
For these models use the following name format: tts_models/<lang-iso_code>/fairseq/vits
.
You can find the list of language ISO codes here and learn about the Fairseq models here.
from TTS.api import TTS
api = TTS(model_name="tts_models/eng/fairseq/vits", gpu=True)
api.tts_to_file("This is a test.", file_path="output.wav")
# TTS with on the fly voice conversion
api = TTS("tts_models/deu/fairseq/vits")
api.tts_with_vc_to_file(
"Wie sage ich auf Italienisch, dass ich dich liebe?",
speaker_wav="target/speaker.wav",
file_path="ouptut.wav"
)