Views
No views yet
1from huggingface_hub import hf_hub_download
2
3# Download model files
4vocab_file = hf_hub_download(repo_id="IbrahimSalah/Arabic-F5-TTS-v2", filename="vocab.txt")
5ckpt_file = hf_hub_download(repo_id="IbrahimSalah/Arabic-F5-TTS-v2", filename="model_547500_8_18.pt")
6config_file = hf_hub_download(repo_id="IbrahimSalah/Arabic-F5-TTS-v2", filename="F5TTS_Base_8_18.yaml")
7ref_audio = hf_hub_download(repo_id="IbrahimSalah/Arabic-F5-TTS-v2", filename="reference.wav")
8
9# Run inference via CLI
10!python -m f5_tts.infer.infer_cli \
11 --model_cfg "{config_file}" \
12 --output_file "./output.wav" \
13 --model "F5TTS_Base" \
14 --ckpt_file "{ckpt_file}" \
15 --vocab_file "{vocab_file}" \
16 --ref_audio "{ref_audio}" \
17 --nfe_step 32 \
18 --cfg_strength 1.8 \
19 --ref_text "YOUR_REFERENCE_TEXT_WITH_TASHKEEL" \
20 --gen_text "YOUR_GENERATION_TEXT_WITH_TASHKEEL" \
21 --speed 0.9إِنَّ الْعِلْمَ نُورٌ يُقْذَفُ فِي الْقَلْبِ