5.4 KiB
5.4 KiB
In [ ]:
import torch
print(torch.cuda.is_available())
!nvidia-smiIn [ ]:
!git clone https://github.com/microsoft/VibeVoice.git
import os
os.chdir("./VibeVoice")
!apt update && apt install ffmpeg -y
!pip install -e .In [ ]:
# First download checkpoint takes ~3 minutes
!python demo/inference_from_file.py --model_path microsoft/VibeVoice-1.5B --txt_path demo/text_examples/2p_short.txt --speaker_names Alice Frank
from IPython.display import Audio
Audio("./outputs/2p_short_generated.wav")In [ ]:
text = """Speaker 1: Can I try VibeVoice with my own example?
Speaker 2: Of course! VibeVoice is open-source, built to benefit everyone — you’re welcome to try it out."""
with open("demo/text_examples/my_example.txt", "w", encoding="utf-8") as f:
f.write(text)In [ ]:
!python demo/inference_from_file.py --model_path microsoft/VibeVoice-1.5B --txt_path demo/text_examples/my_example.txt --speaker_names Alice Frank
Audio("./outputs/my_example_generated.wav")