Views
No views yet
1git clone https://github.com/SWivid/F5-TTS.git
2cd F5-TTSwget https://hf.rst.im/ModelsLab/F5-tts-brazilian/resolve/main/Brazilian_Portuguese/model_2600000.pt -P ckpts/1pip install torch==2.3.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
2pip install torchaudio==2.3.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118pip install -r requirements.txt1apt update
2apt install -y ffmpeg1python inference-cli.py \
2
3 # Specify the model name to use for inference
4 --model "F5-TTS" \
5
6 # Path to the model checkpoint file, which contains the saved model weights
7 --ckpt_file "path/to/model.pt" \
8
9 # Path to the reference audio file. This file is used to capture the speaking style
10 # and voice characteristics, which the model will try to mimic.
11 --ref_audio "wavs/sample_audio.wav" \
12
13 # Reference text associated with the reference audio file.
14 # This helps the model understand the speaking style.
15 --ref_text "levantara a mão contra ele e o oficial então arrancara da espada e atravessara o de lado a lado estava direito ah" \
16
17 # Text that the model will generate speech for. This will be spoken in the style
18 # derived from the reference audio and text.
19 --gen_text "O Brasil, oficialmente República Federativa do Brasil, é o maior país da América do Sul e da América Latina."