Download example.py from scrappylabsai/audio8-tts-fastpath: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/scrappylabsai/audio8-tts-fastpath/resolve/main/example.py
- Command line
-
hf download hf://scrappylabsai/audio8-tts-fastpath/example.py
-
curl -L -o example.py https://huggingface.co/scrappylabsai/audio8-tts-fastpath/resolve/main/example.py
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)") | |