地址:https://github.com/SWivid/F5-TTS
conda create -n f5-tts python=3.10
conda activate f5-tts
apt update
apt install -y ffmpeg
pip uninstall torch torchvision torchaudio transformers
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install transformers
git clone https://github.com/SWivid/F5-TTS.git
cd F5-TTS
pip install -e .
f5-tts_infer-gradio --port 7860 --host 0.0.0.0
如果在运行的时候下载HuggingFace失败,执行一个命令行临时配置,重新运行。
export HF_ENDPOINT=https://hf-mirror.com
f5-tts_infer-gradio --port 7860 --host 0.0.0.0