Audio Translations API
Transcribe speech and translate it, into English by default or into another language with target_language.
Overview
POST /v1/audio/translations is OpenAI-compatible: client.audio.translations.create(model="morph-transcribe", file=audio) returns English. Morph adds target_language, to translate from English into another language, url input in a JSON body, and prompt and keyterms for names and jargon.
Languages
Translation runs into English from ar, bg, cs, da, de, el, es, et, fi, fr, he, hi, hr, hu, it, ja, ko, lt, lv, mt, nl, pl, pt, ro, ru, sk, sl, sv, th, uk and zh, or from English into any of them.target_language takes the code or the English name; the default is en.
Options and responses
Onlymorph-transcribe translates. It takes prompt, keyterms[], stream and the json, text and verbose_json formats; style, diarize, tag_audio_events, timestamps, srt and vtt are refused with a 400. In verbose_json, language is the target. stream: true returns the same server-sent events as transcription. Usage, limits and errors match transcription.Authorizations
Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.
Body
The audio and the target language.
A multipart upload to translate. style, diarize, tag_audio_events, timestamps and subtitles are refused with a 400.
The language to translate into, as an ISO 639-1 code or an English name. Default en. Translation runs from English into ar, bg, cs, da, de, el, es, et, fi, fr, he, hi, hr, hu, it, ja, ko, lt, lv, mt, nl, pl, pt, ro, ru, sk, sl, sv, th, uk, zh, or from any of them into English.
"en"
Response
The translation as json, text or verbose_json, or a server-sent event stream when stream is true.
- Option 1
- Option 2
The json response.
Present when the transcript ends before the audio does: it hit the per-request output cap of ceil(audio seconds x 16) + 256 tokens (about 4 tokens per second is normal speech, so this marks a model repetition loop), or the model stopped transcribing and the text was cut there. Also sent as the header x-morph-truncated: true.
true true