Instructions to use MohammedEhab20/vibe-voice-egyptian-cfg35 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VibeVoice
How to use MohammedEhab20/vibe-voice-egyptian-cfg35 with VibeVoice:
import torch, soundfile as sf, librosa, numpy as np from vibevoice.processor.vibevoice_processor import VibeVoiceProcessor from vibevoice.modular.modeling_vibevoice_inference import VibeVoiceForConditionalGenerationInference # Load voice sample (should be 24kHz mono) voice, sr = sf.read("path/to/voice_sample.wav") if voice.ndim > 1: voice = voice.mean(axis=1) if sr != 24000: voice = librosa.resample(voice, sr, 24000) processor = VibeVoiceProcessor.from_pretrained("MohammedEhab20/vibe-voice-egyptian-cfg35") model = VibeVoiceForConditionalGenerationInference.from_pretrained( "MohammedEhab20/vibe-voice-egyptian-cfg35", torch_dtype=torch.bfloat16 ).to("cuda").eval() model.set_ddpm_inference_steps(5) inputs = processor(text=["Speaker 0: Hello!\nSpeaker 1: Hi there!"], voice_samples=[[voice]], return_tensors="pt") audio = model.generate(**inputs, cfg_scale=1.3, tokenizer=processor.tokenizer).speech_outputs[0] sf.write("output.wav", audio.cpu().numpy().squeeze(), 24000) - Notebooks
- Google Colab
- Kaggle
File size: 1,226 Bytes
f8b2e54 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | ---
language: ar
tags:
- text-to-speech
- egyptian-arabic
- voice-cloning
- vibevoice
---
# VibeVoice Egyptian Arabic — cfg_scale=3.5
Fine-tuned VibeVoice on Egyptian Arabic dialect (checkpoint-9160).
## cfg_scale=3.5
Natural prosody, moderate voice cloning. Good for conversational TTS.
_Lowest safe value — values below 3.0 cause over-generation past script end._
## Repo contents
| File | Description |
|---|---|
| `model.safetensors` | Merged model weights (5.1 GB, single shard) |
| `config.json` | Model architecture config |
| `tokenizer.json` + friends | Qwen2.5 tokenizer files |
| `preprocessor_config.json` | Audio processor settings |
| `voices/egyptian_male.wav` | Reference voice for male speaker |
| `voices/egyptian_female.wav` | Reference voice for female speaker |
| `samples/demo_cfg3.5.wav` | Sample output at this cfg_scale |
## Backend usage
```python
from huggingface_hub import hf_hub_download, snapshot_download
snapshot_download("MohammedEhab20/vibe-voice-egyptian-cfg35", local_dir="./model")
male_voice = "./model/voices/egyptian_male.wav"
female_voice = "./model/voices/egyptian_female.wav"
# Run inference:
# python inference_from_file.py --model_path ./model --cfg_scale 3.5 ...
```
|