Documentation Index
Fetch the complete documentation index at: https://docs.slng.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
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 a key from app.slng.ai, then export it in your shell:~/.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/.
Speech-to-text
Transcribe a file:arecord or any source:
Discover models and voices
Configuration
Defaults that the CLI reads from~/.config/voiceai/config.json:
| Key | Purpose |
|---|---|
api-key | Default VOICEAI_API_KEY |
default-tts-model | Model used when --model is omitted on tts |
default-tts-voice | Voice used when --voice is omitted on tts |
default-stt-model | Model used when --model is omitted on stt |
base-url | Override the API host (rarely needed) |
voiceai config set <key> <value>. Override per-invocation with the matching flag.
Source and releases
- Source: github.com/slng-ai/sdks
- Releases: github.com/slng-ai/sdks/releases. Tags prefixed
cli-v*are CLI builds; everything else is for the SDKs.