POST /stt
Transcribes audio files to text using OpenAI’s Whisper model via Mastra’s voice capabilities.Request Body
Content-Type:multipart/form-data
File
required
Audio file to transcribe. Supported formats: MP3, WAV, M4A, FLAC, OGG, WEBM, etc.
Request Example
Response
string
The transcribed text from the audio file.
boolean
Always
true for successful transcriptions.string
ISO timestamp of when transcription was completed.
number
Processing time in milliseconds.
Success Response (200)
Error Responses
Supported Audio Formats
- MP3
- WAV
- M4A
- FLAC
- OGG
- WEBM
- And other formats supported by OpenAI Whisper
File Size Limits
- Maximum file size: 25MB (OpenAI API limit)
- Recommended: Keep files under 10MB for faster processing
Language Support
- Default: English (en-US)
- Multi-language: Automatically detects multiple languages
- Best results: Clear pronunciation for non-English audio
