The Speech to Text (STT) service transcribes audio files into text. The unified POST /tasks/audio/transcriptions endpoint is powered by Sunbird’s faster-whisper ASR model (Sunbird/faster-whisper-51-african-languages, a Whisper large-v3 fine-tune) covering 51 African languages.
Breaking change (v2.1). This endpoint previously accepted platform, adapter, whisper, recognise_speakers, org, and gcs_blob_name. Those parameters have been removed and are now rejected with 422. Send only audio, language, and (optionally) timestamps.
Audio Requirements
- Formats: MP3, WAV, M4A, OGG, and more.
- Duration Limit: For files larger than 100MB, only the first 10 minutes are transcribed.
- File Size: Direct uploads are supported. Use the signed-URL workflow to stage large files in Google Cloud Storage.
Transcribing a File
audio and language are both required. The model reuses Whisper’s language-token slots for African languages, which makes automatic language detection unreliable — always pass a language explicitly.
Parameters
Response
Timestamped Segments
Set timestamps=true to also receive per-segment start/end times in segments. It is false by default, in which case segments comes back as null.
Supported Languages (51)
Pass the ISO 639-3 code as language. All ten languages served by the previous version of this endpoint are still supported.
Per-language accuracy scales with the amount of training data available for each language. See the model card for per-language WER/CER figures.
File Uploads (Signed URLs)
Generate secure signed URLs for direct client uploads to Google Cloud Storage. URLs are valid for 30 minutes and include path-traversal protection.