Speech To Text (STT)
Sync Transcribe
The Sync Transcription endpoint accepts audio files and returns transcribed text within the same HTTP request/response cycle.
POST https://api.lelapa.ai/v1/transcribe/sync
Supported Audio Formats
- WAV
- MP3
- FLAC
- AAC
- OGG
- MP4
- AIFF
- OPUS
Important Note: Processing may take up to 2min30s or fail altogether on long, low-quality or complex audio.
Request
Headers
| Header | Type | Required | Description |
|---|---|---|---|
X-CLIENT-TOKEN | string | Yes | API token generated for the project |
Content-Type | string | Yes | Must be set to multipart/form-data |
Form Data
| Parameter | Type | Required | Description |
|---|---|---|---|
file | file | Yes | Audio file content in bytes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
lang_code | string | No | Language code for transcription. If not specified, language will be auto-detected. |
diarise | boolean | No | Enable diarisation (Default: false) |
detect_music | boolean | No | Enable music on hold detection (Default: false) |
Supported Language Codes
afr- Afrikaanszul- isiZulusot- Sesothoeng- South African Englishfra- African Frenchcs-zul- Code-switched isiZulu (alpha)
Response
🟢 200 OK
The request was successful.
Code
Error Responses
🔴 400 Bad Request
The request was malformed or contained invalid data
🔴 413 Payload Too Large
File size exceeds limit
🔴 415 Unsupported Media Type
Invalid audio file format
🟠 401 Unauthorized
The client token is missing or invalid.
🔴 500 Internal Server Error
An unexpected error occurred on the server.
🔴 504 Gateway Timeout Error
We are currently experiencing exceptionally high load. Retry later.
Code Examples
Code
Last modified on

