Skip to main content
voiceai is a single static binary that wraps the SLNG API. Use it to generate audio, transcribe files, stream over WebSocket, and pipe audio between tools.

Install

Verify the install:
On macOS, the curl-installed binary is unsigned. If the first run is blocked by Gatekeeper, run xattr -d com.apple.quarantine $(which voiceai) or right-click → Open in Finder once.

Authenticate

Get an SLNG key from app.slng.ai, then export it in your shell:
Or save it to the CLI config:
The config lives at ~/.config/voiceai/config.json. Environment variables take precedence.

Text-to-speech

Synthesize audio from text. By default the CLI plays the audio and saves a copy to $TMPDIR/voiceai-tts/.
Pipe raw audio when stdout is not a terminal:
Stream chunks over WebSocket for long text or low-latency playback:

Speech-to-text

Transcribe a file:
Stream from the microphone:
Pipe raw PCM from arecord or any source:

Discover models and voices

Configuration

Defaults that the CLI reads from ~/.config/voiceai/config.json: Set any of them with voiceai config set <key> <value>. Override per-invocation with the matching flag.

Source and releases