Prompt
transcribe mp3 api
Latest observation
Oct 11, 2026
OpenAI APIWeb search: off
If you want to transcribe an MP3 via an API, here are the common ways to do it:
1) OpenAI Speech-to-Text API
You can send an MP3 file to a transcription endpoint.
Python example
from openai import OpenAI
client = OpenAI()
audio_file = open("audio.mp3", "rb")
transcript = client.audio.transcriptions.create(
model="whisper-1",
file=audio_file
)
print(transcript.text)
cURL example
curl https://api.openai.com/v1/audio/transcriptions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-F file="@audio.mp3" \
-F model="whisper-1"
2) Google Speech-to-Text
Good for scalable transcription, especially if you already use Google Cloud.
3) AWS Transcribe
Useful for batch processing and large files stored in S3.
4) Azure Speech to Text
Another solid option with real-time and batch transcription.
Notes
- MP3 is usually supported by these services.
- For long files, you may need to upload to cloud storage first.
- If you need speaker diarization, timestamps, or translation, some APIs support those too.
If you want, I can give you:
- a Node.js example
- a Python script
- a FastAPI endpoint
- or help choosing the best API for your use case.