File size: 441 Bytes
2d2b898
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python
"""Minimal example: load the public model, compile the fast path, speak one line."""
import soundfile as sf
from fast_arktts import FastTTS

tts = FastTTS()  # loads scrappylabsai/warble, compiles + warms the fast frame step
audio, sr = tts.speak("<|speaker:2|>Thanks for calling. I can help you with that today.", seed=7)
sf.write("example.wav", audio, sr)
print(f"wrote example.wav ({len(audio)/sr:.2f}s @ {sr} Hz)")