Instructions to use aszfezf/saudi-arabic-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chatterbox
How to use aszfezf/saudi-arabic-tts with Chatterbox:
# pip install chatterbox-tts import torchaudio as ta from chatterbox.tts import ChatterboxTTS model = ChatterboxTTS.from_pretrained(device="cuda") text = "Ezreal and Jinx teamed up with Ahri, Yasuo, and Teemo to take down the enemy's Nexus in an epic late-game pentakill." wav = model.generate(text) ta.save("test-1.wav", wav, model.sr) # If you want to synthesize with a different voice, specify the audio prompt AUDIO_PROMPT_PATH="YOUR_FILE.wav" wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH) ta.save("test-2.wav", wav, model.sr) - Notebooks
- Google Colab
- Kaggle
Arabic Fine-tuned Chatterbox TTS
Fine-tuned Chatterbox TTS T3 component on Arabic TTS data.
Model Details
- Base Model: ResembleAI/chatterbox (multilingual)
- Fine-tuned Component: T3 (text-to-speech token transformer, 535M params)
- Training Data: NeoBoy/arabic-tts-wav-24k (Arabic diacritized TTS)
- Language: Arabic (ar)
Usage
from chatterbox import ChatterboxMultilingualTTS
from safetensors.torch import load_file as load_safetensors
from huggingface_hub import snapshot_download
from pathlib import Path
ckpt_dir = Path(snapshot_download("aszfezf/saudi-arabic-tts"))
model = ChatterboxMultilingualTTS.from_local(ckpt_dir, device="cuda")
wav = model.generate("مرحبا بالعالم", language_id="ar")
- Downloads last month
- 10