Spaces:
Running
on
Zero
Running
on
Zero
File size: 346 Bytes
88afac1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import torchaudio
from vui.inference import render
from vui.model import Vui
model = Vui.from_pretrained().cuda()
waveform = render(
model,
"Hey, here is some random stuff, usually something quite long as the shorter the text the less likely the model can cope!",
)
print(waveform.shape)
torchaudio.save("out.opus", waveform[0], 22050)
|