Views
No views yet
1pip install "transformers==4.51.3" torch soundfile
2pip install git+https://github.com/microsoft/VibeVoice
3
4# get the scripts (the model itself downloads automatically on first run)
5huggingface-cli download mohammed-bahumaish/vibevoice-realtime-0.5b-with-encoder \
6 make_voice_prompt.py run_tts.py --local-dir .
7
8# 1) build a voice prompt from ~15-30s of reference audio
9python make_voice_prompt.py \
10 --voice_wav my_voice.wav \
11 --transcript "exact transcript of the reference audio" \
12 --output my_voice.pt
13
14# 2) speak anything in that voice
15python run_tts.py \
16 --voice_pt my_voice.pt \
17 --text "Hello! This works with the stock Microsoft inference code." \
18 --output out.wav.pt files are drop-in compatible with Microsoft's own demos, like the
prebaked demo/voices/streaming_model/*.pt voices.transformers must be 4.51.x — 5.x silently breaks the model.--transcript explicitly for best results (auto-transcription is English-only).