Loli 2.0
Batch Speech-to-Text
Send multipart/form-data and receive the full transcription when it finishes.
POST
/api/v1/stt/transcriptionsOn this page
Code examples
curl -X POST "https://studio.evomlabs.com/api/v1/stt/transcriptions" \
-H "Authorization: Bearer stt_sk_live_YOUR_KEY" \
-F "audio=@recording.wav" \
-F "language=auto"Request
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
audio | file | Yes | - | Audio file, up to 100 MiB. file is accepted as an alias. |
language | string | No | auto | auto, one of the 30 single-language modes, or one of the three bilingual modes listed below. |
Containers recognised at present: WAV 16-bit PCM, MP3, WebM, OGG and MP4 or M4A. Decoded duration must be between about 0.2 and 1,800 seconds. Which encoded formats decode depends on the deployment, so do not rely on the filename extension alone.
Response
JSON
{
"text": "Nội dung đã phiên âm",
"language": "vi",
"duration_ms": 1234,
"provider": "loli-asr",
"model": "Loli 2.0"
}Errors
REST failures use the documented error envelope. Handle the error code instead of matching the human-readable message.
Error codesWas this page helpful?