audio8-tts-fastpath / example.py
briancconnelly's picture
Scrappy-V8 — fast single-stream inference for Audio8-TTS / arktts (RTF 0.54→0.09)
2d2b898 verified
Raw
History Blame Contribute Delete
441 Bytes
#!/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)")