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. | 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 -- ref https://developers.telnyx.com/api/inference/transcribe AI Inference : POST /v2/ai/chat/completions -- ref https://developers.telnyx.com/api/inference/chat-completions TTS Generate : POST /v2/ai/generate -- ref https://developers.telnyx.com/api/inference/generate 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 Docs https://developers.telnyx.com/docs/inference/models TTS MODEL string telnyx/tts Docs https://developers.telnyx.com/docs/inference STT MODEL string telnyx/asr Docs https://developers.telnyx.com/docs/inference 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 https://portal.telnyx.com : - Call Control Application - https://