F5 TTS
root=pretrained/f5_tts
mkdir -p ${root} && cd ${root}
name=F5TTS_Base
wget https://huggingface.co/SWivid/F5-TTS/resolve/main/${name}/model_1200000.pt -C ${name}.pth
wget https://huggingface.co/SWivid/F5-TTS/resolve/main/${name}/vocab.txt -C ${name}.txt
cd ../..
f5_tts.py can be used to access the pretrained models.
The following command will generate a speech file f5_tts.wav from the text
file lines.txt using the voice file
voices.py.
python f5_tts.py voices.py lines.txt f5_tts.wav