Request
This endpoint expects an object.
audio_urlstringRequired
URL to the audio file or base64-encoded audio as data URI (data:audio/wav;base64,…)
sampling_rateintegerRequiredDefaults to 16000
Audio sampling rate in Hz
target_languageenumOptional
Target language for translation
is_translatebooleanOptionalDefaults to false
Set to true to indicate translation request
return_translation_audiobooleanOptionalDefaults to false
If true, returns base64-encoded audio of the translated speech
temperaturedoubleOptional
Controls randomness in generation. Use 0.0 for deterministic output
max_tokensintegerOptional>=1Defaults to 1024
Maximum number of tokens to generate
Response
Successful transcription or translation
transcriptstring
Transcribed text in the original language
translationstring
Translated text in the target language (only if target_language is specified)
transcript_translation_with_timestamplist of objects
audio_base64string
Base64-encoded WAV audio of the translated speech (only if return_translation_audio is true)