Skip to main content
Convert text to speech right from your terminal — no code required. The Supertone CLI synthesizes from strings, files, or stdin, streams to your speakers in real time, batches whole directories, and manages voices, usage, and credits. Source: supertone-inc/supertone-cli.

Quick start

1

Install

Requires Python 3.12+. The [stream] extra adds real-time playback.
2

Add your API key

3

Hear it

If you hear audio, you’re all set. ✅
Building into application code instead? Use the Python or TypeScript SDK. For AI agents, see MCP.

Installation

Requires Python 3.12+. The [stream] extra enables real-time playback to your system speakers via --stream.

Authenticate

Save defaults once and omit the matching flags on every call:

Synthesize speech

Manage voices

Predict duration & track usage

tts-predict estimates duration and credit cost without spending credits — handy before a large batch.

Recipes

Drop your .txt files in one directory and synthesize them all at once:
Pipe any command’s text straight into real-time speech:
--format json makes any read command scriptable:
Loop over inputs and sum predicted durations before spending credits:

Reference

sona_speech_1, sona_speech_2, sona_speech_2_flash, sona_speech_2t, supertonic_api_1, supertonic_api_3. See Models for capabilities and trade-offs.

Troubleshooting

The install directory isn’t on your PATH, or you installed inside a virtual environment that isn’t active. Re-activate the venv, or reinstall with pip install --user supertone-cli and ensure the user scripts directory is on your PATH.
Your API key is missing or invalid. Check echo $SUPERTONE_API_KEY, or run supertone config set api_key your-api-key. Get a key from the Developer Console.
Real-time playback requires the streaming extra (pip install "supertone-cli[stream]") and the sona_speech_1 model — pass -m sona_speech_1. Other models return “Streaming requires sona_speech_1”; to use them, save to a file with -o output.wav instead.
Synthesis stops when your balance runs out. Check it with supertone usage balance and top up in the Developer Console.

MCP

Let AI agents call Supertone through the Model Context Protocol.

Python SDK

The same API for application code.