cd /news/artificial-intelligence/ai-audio-translator-with-speech-to-t… Β· home β€Ί topics β€Ί artificial-intelligence β€Ί article
[ARTICLE Β· art-41365] src=github.com β†— pub= topic=artificial-intelligence verified=true sentiment=↑ positive

AI audio translator with speech-to-text, LLM translation, and text-to-speech

Telnyx launched an AI content translator that transcribes audio via speech-to-text, translates using an LLM, and generates translated audio with text-to-speech. The tool returns translated audio and an aligned transcript, leveraging Telnyx's AI communications infrastructure for sub-200ms inference.

read2 min views1 publishedJun 26, 2026
AI audio translator with speech-to-text, LLM translation, and text-to-speech
Image: source
name ai-content-translator
title AI Content Translator
description Upload any audio (podcast, meeting, lecture), STT transcribes in source language, AI Inference translates, TTS generates audio in target language. Returns translated audio + aligned transcript.
language python
framework flask
telnyx_products
integrations
channel

Upload any audio (podcast, meeting, lecture), STT transcribes in source language, AI Inference translates, TTS generates audio in target language. Returns translated audio + aligned transcript.

STT Transcribe:POST /v2/ai/transcribe

--refAI Inference:POST /v2/ai/chat/completions

--refTTS Generate:POST /v2/ai/generate

--ref

  API Request
        β”‚
        β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Answer + Greet    β”‚ ── TTS welcome message
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Gather Speech     β”‚ ── STT transcription
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ AI Inference      β”‚
  β”‚ β€’ Translation      β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚ ◄──── conversation loop
           β”‚
           β–Ό
     JSON response
  • Sends conversation to Telnyx AI Inference for processing
  • Converts response to speech via Telnyx TTS

Telnyx is an AI Communications Infrastructure platform - voice, messaging, SIP, AI, and IoT on one private, global network.

Co-located inference- LLM runs on the same network as voice traffic. Sub-200ms round trips.

Copy .env.example

to .env

and fill in:

Variable Type Example Required Description Where to get it
TELNYX_API_KEY
string
KEY0123456789ABCDEF
yes
Telnyx API v2 key

AI_MODEL

string

moonshotai/Kimi-K2.6

DocsTTS_MODEL

string

telnyx/tts

DocsSTT_MODEL

string

telnyx/asr

Docs

git clone https://github.com/team-telnyx/telnyx-code-examples.git
cd telnyx-code-examples/ai-content-translator-python
cp .env.example .env
pip install -r requirements.txt
python app.py
ngrok http 5000

Set webhook URL in Telnyx Portal:

  • Call Control Application -> https://<id>.ngrok.io/webhooks/voice

Upload as multipart form:

curl -X POST http://localhost:5000/translate \
  -F audio=@lecture.mp3 \
  -F source=en \
  -F target=ja

Response:

{"job_id": "tr-a1b2c3d4", "status": "complete", "source": "en (English)", "target": "ja (Japanese)", "original_length": 1847, "translated_length": 923}
curl http://localhost:5000/health
{"status": "ok"}

Connection refused on port 5000: App isn't running. Runpython app.py

and check no other process uses port 5000.401 Unauthorized: YourTELNYX_API_KEY

is invalid. Generate a new one atportal.telnyx.com/api-keys.AI response slow/empty: Verify model name. See available models atdevelopers.telnyx.com.

run-llm-inference-python- Standalone inferencebuild-voice-ai-agent-python- Voice AI agent

── more in #artificial-intelligence 4 stories Β· sorted by recency
── more on @telnyx 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/ai-audio-translator-…] indexed:0 read:2min 2026-06-26 Β· β€”