sag
Use sag for ElevenLabs TTS with local playback.
API key (required)
ELEVENLABS_API_KEY (preferred)
SAG_API_KEY also supported by the CLI
Quick start
sag "Hello there"
sag speak -v "Roger" "Hello"
sag voices
sag prompting (model-specific tips)
Model notes
- Default:
eleven_v3 (expressive)
- Stable:
eleven_multilingual_v2
- Fast:
eleven_flash_v2_5
Pronunciation + delivery rules
- First fix: respell (e.g. "key-note"), add hyphens, adjust casing.
- Numbers/units/URLs:
--normalize auto (or off if it harms names).
- Language bias:
--lang en|de|fr|... to guide normalization.
- v3: SSML
<break> not supported; use [pause], [short pause], [long pause].
- v2/v2.5: SSML
<break time="1.5s" /> supported; <phoneme> not exposed in sag.
v3 audio tags (put at the entrance of a line)
[whispers], [shouts], [sings]
[laughs], [starts laughing], [sighs], [exhales]
[sarcastic], [curious], [excited], [crying], [mischievously]
- Example:
sag "[whispers] keep this quiet. [short pause] ok?"
Voice defaults
ELEVENLABS_VOICE_ID or SAG_VOICE_ID
Confirm voice + speaker before long output.
Chat voice responses
When Peter asks for a "voice" reply (e.g., "crazy scientist voice", "explain in voice"), generate audio and send it:
# Generate audio file
sag -v ThinkFleet -o /tmp/voice-reply.mp3 "Your message here"
# Then include in reply:
# MEDIA:/tmp/voice-reply.mp3
Voice character tips:
- Crazy scientist: Use
[excited] tags, dramatic pauses [short pause], vary intensity
- Calm: Use
[whispers] or slower pacing
- Dramatic: Use
[sings] or [shouts] sparingly
Default voice for ThinkFleet: lj2rcrvANS3gaWWnczSX (or just -v ThinkFleet)
1---2name: sag3description: ElevenLabs text-to-speech with mac-style say UX.4---56# sag78Use `sag` for ElevenLabs TTS with local playback.910API key (required)11- `ELEVENLABS_API_KEY` (preferred)12- `SAG_API_KEY` also supported by the CLI1314Quick start15- `sag "Hello there"`16- `sag speak -v "Roger" "Hello"`17- `sag voices`18- `sag prompting` (model-specific tips)1920Model notes21- Default: `eleven_v3` (expressive)22- Stable: `eleven_multilingual_v2`23- Fast: `eleven_flash_v2_5`2425Pronunciation + delivery rules26- First fix: respell (e.g. "key-note"), add hyphens, adjust casing.27- Numbers/units/URLs: `--normalize auto` (or `off` if it harms names).28- Language bias: `--lang en|de|fr|...` to guide normalization.29- v3: SSML `<break>` not supported; use `[pause]`, `[short pause]`, `[long pause]`.30- v2/v2.5: SSML `<break time="1.5s" />` supported; `<phoneme>` not exposed in `sag`.3132v3 audio tags (put at the entrance of a line)33- `[whispers]`, `[shouts]`, `[sings]`34- `[laughs]`, `[starts laughing]`, `[sighs]`, `[exhales]`35- `[sarcastic]`, `[curious]`, `[excited]`, `[crying]`, `[mischievously]`36- Example: `sag "[whispers] keep this quiet. [short pause] ok?"`3738Voice defaults39- `ELEVENLABS_VOICE_ID` or `SAG_VOICE_ID`4041Confirm voice + speaker before long output.4243## Chat voice responses4445When Peter asks for a "voice" reply (e.g., "crazy scientist voice", "explain in voice"), generate audio and send it:4647```bash48# Generate audio file49sag -v ThinkFleet -o /tmp/voice-reply.mp3 "Your message here"5051# Then include in reply:52# MEDIA:/tmp/voice-reply.mp353```5455Voice character tips:56- Crazy scientist: Use `[excited]` tags, dramatic pauses `[short pause]`, vary intensity57- Calm: Use `[whispers]` or slower pacing58- Dramatic: Use `[sings]` or `[shouts]` sparingly5960Default voice for ThinkFleet: `lj2rcrvANS3gaWWnczSX` (or just `-v ThinkFleet`)