Speech To Text
POST/speech-to-text/transcribe
Speech-to-text transcription with automatic history saving
Authentication
Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication. SDK: client.speech_to_text.transcribe (Python), client.speechToText.transcribe (Node).
Request body
multipart/form-data
| Field | Type | Description |
|---|---|---|
file* | file | |
include_timestamps | boolean | |
language | string | |
provider | string | |
save_to_history | boolean |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
audio_metadata* | app__schemas__speech_to_text__AudioMetadata | Audio file metadata |
confidence* | number | |
history_id | string | |
language | string | |
processing_time* | number | |
provider | string | |
quality_score | number | |
segments | object[] | |
speaker_count | integer | |
text* | string | |
word_count | integer | |
word_timestamps | object[] |
{
"audio_metadata": {
"checksum": "string",
"format": "string",
"size": 0
},
"confidence": 0,
"processing_time": 0,
"text": "string"
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X POST "https://api.voicemint.io/api/v1/speech-to-text/transcribe" \
-H "Authorization: Bearer $VOICEMINT_API_KEY" \
-F "file=@./file" \
-F "include_timestamps=..." \
-F "language=..." \
-F "provider=..." \
-F "save_to_history=..."