OpenClaw · Skill
Telnyx Tts
Generate high-quality speech audio from text using the Telnyx TTS API.
Install
Start with the primary install command. Alternate entrypoints are included below for ClawHub and OpenClaw CLI users.
Primary command
clawhub install teamtelnyx/telnyx-ttsClawHub installer
npx clawhub@latest install teamtelnyx/telnyx-ttsOpenClaw CLI
openclaw skills install teamtelnyx/telnyx-ttsDirect OpenClaw install
openclaw install teamtelnyx/telnyx-ttsWhat this skill does
Generate high-quality speech audio from text using the Telnyx TTS API.
Why it matters
Telnyx bundles both premium NaturalHD and budget KokoroTTS voices in one API, so you can tune quality vs. cost per use case without switching providers.
Typical use cases
- Turning written announcements into audio files
- Creating voice messages for team updates
- Generating narration for video or podcast content
- Producing audio versions of articles or reports
- Automating voice output for notification systems
Source instructions
Telnyx Text-to-Speech
Generate high-quality speech audio from text using the Telnyx TTS API.
Usage
To convert text to speech, run the script:
{baseDir}/scripts/telnyx-tts.py "Your text here" -o /tmp/output.mp3
The script outputs the path to the generated audio file on success.
Options
-o, --output PATH: Output file path (default: output.mp3)--voice VOICE: Voice ID (default: Telnyx.NaturalHD.astra)
Available Voices
Telnyx provides multiple voice options:
- Telnyx NaturalHD: Premium voices with refined prosody
Telnyx.NaturalHD.astra(default)Telnyx.NaturalHD.lunaTelnyx.NaturalHD.andersen_johan
- Telnyx KokoroTTS: Budget-friendly for high-volume
Telnyx.KokoroTTS.afTelnyx.KokoroTTS.am
Example
Generate speech and return as media:
{baseDir}/scripts/telnyx-tts.py "Hello! This is a test of Telnyx text to speech." -o /tmp/tts-output.mp3
Then return the audio file:
MEDIA: /tmp/tts-output.mp3
For Telegram voice notes, the audio will be sent as a voice message.
Environment
Requires TELNYX_API_KEY environment variable to be set.