Skip to content
VoiceMint Developers

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

FieldTypeDescription
file*file
include_timestampsboolean
languagestring
providerstring
save_to_historyboolean

Response

200 application/json

FieldTypeDescription
audio_metadata*app__schemas__speech_to_text__AudioMetadataAudio file metadata
confidence*number
history_idstring
languagestring
processing_time*number
providerstring
quality_scorenumber
segmentsobject[]
speaker_countinteger
text*string
word_countinteger
word_timestampsobject[]
{
  "audio_metadata": {
    "checksum": "string",
    "format": "string",
    "size": 0
  },
  "confidence": 0,
  "processing_time": 0,
  "text": "string"
}

Errors

401Missing, wrong, revoked or expired key.
403The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client.
402Not enough credits, or the key reached its spending cap.
422The request failed validation; `detail` lists the fields.
429Over 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=..."