Sound To Text
Transcribe recordings up to 15 minutes. Only successful transcriptions use the allowance, measured by the recording’s length.
POST
https://borminto.com/api/v1/voice/dictations
Form fields
audiofile · required- WAV, WebM, OGG, FLAC, MP3 or M4A, up to 15 minutes and 32 MiB.
languagestring · optional- A hint such as
ar,enorar-EG. Leave it out, or sendauto, to detect automatically. Idempotency-Keyheader · recommended- A retry with the same key returns the saved result for 24 hours without another charge.
Long recordings
Recordings of up to 30 seconds return the transcript immediately. Longer recordings return 202 with request_id, status and status_url.
Send GET to the status URL with the same application key, following Retry-After while processing. Read text when status is complete. If the request fails, read error and use a new idempotency key to retry.
Errors
| Status | Code | What to do |
|---|---|---|
| 401 | authentication_required | The key is missing or revoked. Send a current bv_ key. |
| 402 | allowance_exhausted | The allowance has been used. allowance_expired means the plan has ended. |
| 403 | application_suspended | The application is suspended. Contact the administrator. |
| 409 | idempotency_conflict | The same Idempotency-Key was sent with different input. Use a new key for new input. |
| 410 | connection_ended | The call, session or saved result has ended. Start a new one. |
| 422 | invalid_request | A field, the audio or the Idempotency-Key is not valid. Audio problems use codes such as no_speech or audio_too_long. |
| 429 | rate_limited | Too many requests. Wait for Retry-After seconds. |
| 503 | voice_unavailable | Temporarily unavailable. Retry after Retry-After with the same Idempotency-Key. |