Instructions to use mudler/vibevoice.cpp-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VibeVoice
How to use mudler/vibevoice.cpp-models 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("mudler/vibevoice.cpp-models") model = VibeVoiceForConditionalGenerationInference.from_pretrained( "mudler/vibevoice.cpp-models", 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
Commit History
-
Add 23 pre-converted voice GGUFs (DE/EN/FR/IN/IT/JP/KR/NL/PL/PT/SP)
Verified signatureAdds the 23 voice GGUFs not currently in this repo, pre-converted from the upstream Microsoft VibeVoice demo voices in `microsoft/VibeVoice/demo/voices/streaming_model/`. Repo previously had: `voice-en-Carter_man.gguf`, `voice-en-Emma.gguf`. After this PR, all 25 voices ship pre-converted - anyone using vibevoice.cpp can `hf download mudler/vibevoice.cpp-models --local-dir models` and have every voice ready, no torch install or conversion script run required. ### Voices added - **EN (4)**: Davis (m), Frank (m), Grace (w), Mike (m) - **DE**: Spk0 (m), Spk1 (w) - **FR**: Spk0 (m), Spk1 (w) - **IT**: Spk0 (w), Spk1 (m) - **SP**: Spk0 (w), Spk1 (m) - **PT**: Spk0 (w), Spk1 (m) - **NL**: Spk0 (m), Spk1 (w) - **PL**: Spk0 (m), Spk1 (w) - **JP**: Spk0 (m), Spk1 (w) - **KR**: Spk0 (w), Spk1 (m) - **IN**: Samuel (m) Total ~176 MB across 23 files. ### Conversion details - Script: `scripts/convert_voice_to_gguf.py` from `mudler/vibevoice.cpp` (this repo's tooling project) - Source: `https://g…a72a041
-
add Q4_K (matmul) - 9.7 GB, -70%
Verified signaturea67807e -
README: add LocalAI team attribution
Verified signatureadae3bc -
Add files using upload-large-folder tool
Verified signatured8c03d9 -
initial commit
Verified signaturee74030b