✓ Verified ✍️ Content Creation ✓ Enhanced Data

Telnyx Tts

Generate speech audio from text using Telnyx Text-to-Speech API.

Rating
4 (66 reviews)
Downloads
1,248 downloads
Version
1.0.0

Overview

Generate speech audio from text using Telnyx Text-to-Speech API.

Complete Documentation

View Source →

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:

text
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.

Installation

Terminal bash

openclaw install telnyx-tts
    
Copied!

💻Code Examples

{baseDir}/scripts/telnyx-tts.py "Your text here" -o /tmp/output.mp3

basedirscriptstelnyx-ttspy-your-text-here--o-tmpoutputmp3.txt
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:

Tags

#media_and-streaming #api

Quick Info

Category Content Creation
Model Claude 3.5
Complexity One-Click
Author teamtelnyx
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install telnyx-tts