Real-Time Phone Call Transcription Pipeline with Telnyx and OpenAI Whisper

harpreetseehra1 pts0 comments

How to Build a Real-Time Phone Call Transcription Pipeline with Telnyx and OpenAI Whisper : Telnyxjump to contentmy subreddits<br>edit subscriptions<br>popular<br>-all<br>-users<br>| AskReddit<br>-pics<br>-funny<br>-movies<br>-gaming<br>-worldnews<br>-news<br>-todayilearned<br>-nottheonion<br>-explainlikeimfive<br>-mildlyinteresting<br>-DIY<br>-videos<br>-OldSchoolCool<br>-TwoXChromosomes<br>-tifu<br>-Music<br>-books<br>-LifeProTips<br>-dataisbeautiful<br>-aww<br>-science<br>-space<br>-Showerthoughts<br>-askscience<br>-Jokes<br>-Art<br>-IAmA<br>-Futurology<br>-sports<br>-UpliftingNews<br>-food<br>-nosleep<br>-creepy<br>-history<br>-gifs<br>-InternetIsBeautiful<br>-GetMotivated<br>-gadgets<br>-announcements<br>-WritingPrompts<br>-philosophy<br>-Documentaries<br>-EarthPorn<br>-photoshopbattles<br>-listentothis<br>-blog

more "

reddit.com Telnyxcomments

Want to join? Log in or sign up in seconds.

limit my search to r/Telnyxuse the following search parameters to narrow your results:<br>subreddit:subredditfind submissions in "subreddit"author:usernamefind submissions by "username"site:example.comfind submissions from "example.com"url:textsearch for "text" in urlselftext:textsearch for "text" in self post contentsself:yes (or self:no)include (or exclude) self postsnsfw:yes (or nsfw:no)include (or exclude) results marked as NSFWe.g. subreddit:aww site:imgur.com dog<br>see the search faq for details.

advanced search: by author, subreddit...

this post was submitted on 03 Jul 2026<br>1 point (100% upvoted)<br>shortlink:

Submit a new link

Submit a new text post

Telnyx<br>joinleave<br>a community for 10 years

MODERATORS

message the mods

How to Build a Real-Time Phone Call Transcription Pipeline with Telnyx and OpenAI Whisper<br>1 &middot; 1 comment<br>Failed to initialize Telnyx client<br>Built a Python example for monitoring outbound number reputation with AI<br>Outage?<br>Built a Python lead enrichment example using phone number lookup + AI<br>How to Build an AI Chat Endpoint in Node.js with the Telnyx AI Assistants API<br>1 &middot; 2 comments<br>AT&T call forwarding to a Telnyx number drops every call before answer. Direct calls work fine. Anyone else?<br>Built a Python churn prediction using GLM 5.2<br>1 &middot; 1 comment<br>AI restaurant reservation voice agent with Python and Telnyx<br>1 &middot; 1 comment<br>Look Up Phone Number Carrier and Line Type with Python and the Telnyx Number Lookup API

Welcome to Reddit,<br>the front page of the internet.<br>Become a Redditorand join one of thousands of communities.

&times;

How to Build a Real-Time Phone Call Transcription Pipeline with Telnyx and OpenAI Whisper (self.Telnyx)<br>submitted 5 hours ago by General_Piglet_8242

What this example does

This example wires up the smallest useful phone-call-to-AI-response pipeline:

An outbound call goes out via Telnyx Call Control

Telnyx records the call audio and saves it to a hosted URL

A call.recording.saved webhook fires

The app downloads the audio, transcribes it with OpenAI Whisper, generates a contextual response with GPT-4, and plays it back through Telnyx TTS

It's about 245 lines of Python , end-to-end. It's a demo , not production code — the post will walk through which specific lines need hardening before this runs at any real volume.

The full code lives in telnyx-code-examples/call-whisper-monitoring-python. This is an Infrastructure  pillar example — it demonstrates the agent-platform thesis by chaining Telnyx call control with OpenAI inference behind a single webhook, instead of stitching together four separate vendors.

Why pair Telnyx Call Recording with OpenAI Whisper?

Telnyx Call Control records the call audio to a hosted URL (when recording is enabled on the Call Control Application in the Portal). OpenAI Whisper turns that audio into text in a single API call. Pairing them gives you a phone-call-to-transcript pipeline in three webhook calls, no media servers, no S3 buckets, no transcription worker pool.

The catch: Telnyx owns the recording pipeline (capture, storage, webhook delivery); OpenAI owns the inference (Whisper + GPT-4 + future models). You own the glue — the webhook handler, the retry policy, the timing budget, and the state management.

Most "build a phone call AI" tutorials skip that glue. This one doesn't.

The Four-Stage Pipeline

POST /calls/initiate<br>┌──────────────────────┐<br>│ Telnyx Voice API │ ──► outbound call rings<br>└──────────┬───────────┘<br>│ call.answered, call.hangup webhooks<br>┌──────────────────────┐<br>│ Express / Flask │<br>│ in-memory call_state │<br>└──────────┬───────────┘<br>│ call.recording.saved webhook<br>┌──────────────────────┐<br>│ download audio │<br>│ → Whisper (transcribe)│<br>│ → GPT-4 (respond) │<br>│ → Telnyx speak (TTS) │<br>└──────────────────────┘<br>└──► caller hears the AI response

The demo uses Telnyx for call control, OpenAI for two AI calls (Whisper + GPT-4), and Telnyx again for TTS playback. Two vendors, three AI systems, one webhook.

Set up the project

git clone https://github.com/team-telnyx/telnyx-code-examples.git<br>cd telnyx-code-examples/call-whisper-monitoring-python<br>cp .env.example .env<br># fill in 4 values<br>pip install -r requirements.txt<br>python app.py<br># starts on...

call telnyx whisper openai phone python

Related Articles