Runnable snippets that demonstrate stackvox's library surface. Run them from the repo root after pip install -e ..
The Quickstart. Shows:
- module-level
speak(...)— loads the model on first call and reuses it after, - a reusable
Stackvoxengine with a custom voice, - non-blocking playback and
stop(), - raw sample access via
synthesize(...)for custom processing.
python examples/basic.pyIterates through a French, Italian, Hindi, Portuguese, and British-English voice, speaking a short line in each language so you can pick one by ear. Useful when you want to see (well, hear) what the voice prefixes in the README table actually sound like.
python examples/voice_demo.py