Speech to speech

POST /v1/speech-to-speech

Translates text between spoken languages. Price: Speech→Speech rate (currently $0.33 per minute of spoken length; minimum $0.01). Idempotent with Idempotency-Key.

FieldTypeRequiredNotes
textstringyes≤ 5,000 characters.
toLangstringyesISO 639-1 target, e.g. es.
fromLangstringnoISO 639-1 source; auto-detected when omitted.
modelstringnogoogle-translate (default).
durationSecondsnumbernoSpoken length hint (max 3600); billed on the larger of this and the estimate.

Response data: translatedText, fromLang (string | null), toLang. Errors: 400 (missing text/toLang, unknown model), 402, 409 idempotency_in_progress, 413, 422 idempotency_key_reused, 429, 503. Test mode: sample translation.

Was this page helpful?
Esc