POST /stt
Transcribes audio files to text using OpenAI’s Whisper model via Mastra’s voice capabilities.Request Body
Content-Type:multipart/form-data
Audio file to transcribe. Supported formats: MP3, WAV, M4A, FLAC, OGG, WEBM, etc.
Request Example
Response
The transcribed text from the audio file.
Always
true for successful transcriptions.ISO timestamp of when transcription was completed.
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
