Find your landing page message
Connect a product’s value to a specific audience and write a clear first-screen message.
Generate speech audio from text using Telnyx Text-to-Speech API. Use when you need to convert text to spoken audio, create voice messages, or generate audio content.
---
name: telnyx-tts-1fddd158ef0c
description: Generate speech audio from text using Telnyx Text-to-Speech API. Use when you need to convert text to spoken audio, create voice messages, or generate audio content.
metadata: {"openclaw":{"emoji":"🔊","requires":{"bins":["python3"],"env":["TELNYX_API_KEY"]},"primaryEnv":"TELNYX_API_KEY"}}
---
# 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:
```bash
{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.luna`
- `Telnyx.NaturalHD.andersen_johan`
- **Telnyx KokoroTTS**: Budget-friendly for high-volume
- `Telnyx.KokoroTTS.af`
- `Telnyx.KokoroTTS.am`
## Example
Generate speech and return as media:
```bash
{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.
---
name: telnyx-tts-1fddd158ef0c
description: Generate speech audio from text using Telnyx Text-to-Speech API. Use when you need to convert text to spoken audio, create voice messages, or generate audio content.
metadata: {"openclaw":{"emoji":"🔊","requires":{"bins":["python3"],"env":["TELNYX_API_KEY"]},"primaryEnv":"TELNYX_API_KEY"}}
---
# 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:
```bash
{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.luna`
- `Telnyx.NaturalHD.andersen_johan`
- **Telnyx KokoroTTS**: Budget-friendly for high-volume
- `Telnyx.KokoroTTS.af`
- `Telnyx.KokoroTTS.am`
## Example
Generate speech and return as media:
```bash
{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.
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Includes source scripts; review them before use. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.