Python client library for the Gradium Voice AI API.
You can find some examples in the examples/ directory. Try them out with
uv. For
the text-to-speech streaming example, run:
uv run --with sphn examples/tts_streaming.py \
--text "Hello, this is a test of the Gradium TTS streaming API." \
--api-key gsk_...You can also try the speech-to-text streaming example:
uv run --with sphn examples/tts_streaming.py \
--audio test_file.mp3 \
--api-key gsk_...