myt AI Cloud

By Mauritius Telecom

Beta
⌘K
Core features

Speech to text

Transcribe audio files to text using the transcriptions endpoint.

POST

/v1/audio/transcriptions

Transcribes an audio file into the spoken language using the deployed ASR model.

Request

Send multipart/form-data — do not use application/json for this endpoint.

FieldTypeRequiredNotes
filefileYesAudio file. Supported formats and the maximum file size depend on the deployed ASR model (commonly flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm).
modelstringYesAn ASR model id from your catalog, e.g. myt/myt_asr.
promptstringNoOptional context or spelling hints to guide the model.
response_formatstringNojson (default), text, and other formats where the model supports them (e.g. srt, verbose_json, vtt).
temperaturenumberNoSampling temperature, where supported.

Example request (curl)

curl -sS --request "POST" \
  --url "$MYT_BASE_URL/audio/transcriptions" \
  --header "Authorization: Bearer $MYT_API_KEY" \
  -F "model=myt/myt_asr" \
  -F "file=@/path/to/recording.wav"

Response (verbose_json format, where supported)

{
  "task": "transcribe",
  "language": "english",
  "duration": 4.32,
  "text": "The quick brown fox jumps over the lazy dog.",
  "words": [
    { "word": "The",   "start": 0.00, "end": 0.18 },
    { "word": "quick", "start": 0.18, "end": 0.40 }
  ]
}

Errors

StatusWhen
400File missing, unsupported format, or exceeded size limit
401API key missing or invalid
429Rate limit or budget exceeded

Code examples

curl -sS --request "POST" \
  --url "$MYT_BASE_URL/audio/transcriptions" \
  --header "Authorization: Bearer $MYT_API_KEY" \
  -F "model=myt/myt_asr" \
  -F "file=@/path/to/audio.wav"

Full parameter reference: Audio transcriptions.

On this page