Prompt
How do I record phone calls and get transcripts with an API?
Latest observation
Oct 14, 2026
OpenAI APIWeb search: off
You can do this with a telephony provider that supports call control + media recording + transcription, or by combining a calling API with your own recording/transcription pipeline.
Common approaches
1) Use a call API that supports recording and transcription
Providers like Twilio, Vonage, Plivo, and Telnyx let you:
- place/receive calls
- record calls
- retrieve recording files
- get speech-to-text transcripts or use your own transcription service
2) Record audio yourself and transcribe separately
If your provider doesn’t offer transcripts, you can:
- record the call audio
- download the recording
- send it to a transcription service like OpenAI Whisper, AWS Transcribe, Google Speech-to-Text, or Deepgram
Typical flow
- Start or receive a call
- Enable recording
- entire call, or
- one leg / dual-channel if supported
- Store the recording
- Transcribe the recording
- Save transcript + metadata in your app
Example with Twilio-style workflow
Outbound call
You create the call with recording enabled:
curl -X POST https://api.twilio.com/2010-04-01/Accounts/ACXXXX/Calls.json \
-u 'ACXXXX:AUTH_TOKEN' \
--data-urlencode "To=+15551234567" \
--data-urlencode "From=+15557654321" \
--data-urlencode "Url=https://yourapp.com/twiml" \
--data-urlencode "Record=true"
TwiML to control the call
Your webhook returns XML telling Twilio what to do:
<Response>
<Say>Please hold while we connect your call.</Say>
<Dial record="record-from-answer-dual">
<Number>+15551234567</Number>
</Dial>
</Response>
Get the recording
Twilio sends a callback/webhook when the recording is ready, or you can fetch it via API. Then download the media and transcribe it.
Example transcription pipeline
Using Whisper API after download
from openai import OpenAI
client = OpenAI()
with open("call_recording.mp3", "rb") as f:
transcript = client.audio.transcriptions.create(
model="whisper-1",
file=f
)
print(transcript.text)
Important considerations
Consent and legality
Call recording laws vary by jurisdiction. You may need:
- one-party consent or two-party consent
- a spoken disclosure like “This call may be recorded for quality and training purposes”
Audio quality
For better transcripts:
- use dual-channel recording if possible
- reduce background noise
- record at a decent bitrate
- ensure the provider uses a clear codec
Webhooks
Most APIs use webhooks for:
- call status updates
- recording completion
- transcription completion
If you want the simplest setup
A common stack is:
- Twilio for calling + recording
- OpenAI Whisper or Deepgram for transcription
- your backend for storing recordings/transcripts
If you want, I can give you:
- a Twilio end-to-end example
- an example using Vonage/Telnyx/Plivo
- a Python or Node.js implementation
- a design for real-time transcription during calls