> ## Documentation Index
> Fetch the complete documentation index at: https://www.vozo.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Translate & Dub Video/Audio

## Inputs & Outputs

Input:

* media\_url
* source language & target language
* \[optional] subtitle\_url or ocr\_text\_box  (for more accurate speech recognition)
* \[optional] glossary\_ids

<img src="https://mintcdn.com/vozo/sj4I9dYZwuKc04yr/images/glossary_ids.jpg?fit=max&auto=format&n=sj4I9dYZwuKc04yr&q=85&s=35c7b79a4eadaa526c8c09b43b92e666" alt="Glossary Pn" title="Glossary Pn" className="mx-auto" style={{ width:"100%" }} width="2220" height="370" data-path="images/glossary_ids.jpg" />

Output:

* media (video or audio)
* translated subtitle\_url (SRT)

## How it works

<Steps>
  <Step title="Host your assets at a publicly accessible URL">
    Upload your video or audio, and optional subtitle (.srt) so our servers can retrieve them.
  </Step>

  <Step title="Optionally provide OCR text region">
    If there is on‑screen text to translate, specify a normalized OCR box (x, y, width, height) from 0–1; origin at the top‑left of the frame.
  </Step>

  <Step title="Send an API request with the appropriate parameters">
    Include source/target languages (e.g., en‑US → zh‑CN), speaker range if needed, and export type.
  </Step>

  <Step title="Wait or query status">
    Use our webhook callback or poll the API with your task ID until processing is complete.
  </Step>

  <Step title="Download outputs">
    Retrieve translated video/audio and the translated subtitle (.srt) from the provided URLs.
  </Step>
</Steps>

## Usage Limitation

* Only users who can create API Keys may use this API.
* Studio plan is required; non‑Studio users are not allowed.
* Concurrency is limited independently from LipSync; queued requests are counted.
* Language code follows IETF BCP 47 standard, e.g., en‑US.

## API Error Codes

| Code | Description                                                      |
| ---- | ---------------------------------------------------------------- |
| 5    | Invalid request parameters.                                      |
| 7    | No permission to request.                                        |
| 104  | Insufficient credits.                                            |
| 814  | Your account is not a member and is not allowed to call the API. |
| 1000 | Internal Server Error.                                           |
| 1301 | Callback Challenge failed.                                       |
| 1302 | API key has been revoked.                                        |
| 1304 | API key has reached the maximum number of concurrent requests.   |
| 1503 | Your account is not authorized to call the API.                  |
| 1305 | Only Studio plan is allowed.                                     |

## Job Error Codes

| Code  | Description                                                               |
| ----- | ------------------------------------------------------------------------- |
| 10001 | Uploaded file has no video stream                                         |
| 10002 | Uploaded video has no audio stream                                        |
| 10003 | Transcoding failed                                                        |
| 10004 | Failed to generate HLS output                                             |
| 10005 | Video cropping failed                                                     |
| 10010 | Voice separation failed (speech vs. background)                           |
| 10020 | Automatic speech recognition (ASR) failed                                 |
| 10021 | Multi‑speaker ASR failed                                                  |
| 10022 | Speaker diarization (Chinese) failed                                      |
| 10023 | Failed to generate full subtitles                                         |
| 10030 | Translation failed                                                        |
| 10031 | Mixed languages detected; aggregation failed after punctuation adjustment |
| 10032 | OCR extraction failed                                                     |
| 10033 | OCR language not supported                                                |
| 10034 | Subtitle (SRT) alignment failed                                           |
| 10040 | Voice cloning failed                                                      |
| 10041 | No recognized speech content                                              |
| 10042 | No speech detected                                                        |
| 10043 | Re‑cloning voice failed                                                   |
| 10044 | Preview text for TTS is empty                                             |
| 10045 | Failed to generate preview audio                                          |

## Supported Languages

### Source Languages

Note: "auto" is supported to automatically detect the source language and update SourceLanguage when detected.

| Code   | Name                             |
| ------ | -------------------------------- |
| auto   | Auto Detect                      |
| en-US  | English (United States)          |
| en-GB  | English (United Kingdom)         |
| en-AU  | English (Australia)              |
| en-CA  | English (Canada)                 |
| en-GH  | English (Ghana)                  |
| en-HK  | English (Hong Kong)              |
| en-IE  | English (Ireland)                |
| en-IN  | English (India)                  |
| en-KE  | English (Kenya)                  |
| en-NG  | English (Nigeria)                |
| en-NZ  | English (New Zealand)            |
| en-PH  | English (Philippines)            |
| en-SG  | English (Singapore)              |
| en-TZ  | English (Tanzania)               |
| en-ZA  | English (South Africa)           |
| zh-CN  | Chinese (China, Simplified)      |
| zh-HK  | Chinese (Hong Kong, Traditional) |
| zh-TW  | Chinese (Taiwan, Traditional)    |
| es-ES  | Spanish (Spain)                  |
| es-MX  | Spanish (Mexico)                 |
| es-US  | Spanish (United States)          |
| es-AR  | Spanish (Argentina)              |
| es-BO  | Spanish (Bolivia)                |
| es-CL  | Spanish (Chile)                  |
| es-CO  | Spanish (Colombia)               |
| es-CR  | Spanish (Costa Rica)             |
| es-CU  | Spanish (Cuba)                   |
| es-DO  | Spanish (Dominican Republic)     |
| es-EC  | Spanish (Ecuador)                |
| es-GQ  | Spanish (Equatorial Guinea)      |
| es-GT  | Spanish (Guatemala)              |
| es-HN  | Spanish (Honduras)               |
| es-NI  | Spanish (Nicaragua)              |
| es-PA  | Spanish (Panama)                 |
| es-PE  | Spanish (Peru)                   |
| es-PR  | Spanish (Puerto Rico)            |
| es-PY  | Spanish (Paraguay)               |
| es-SV  | Spanish (El Salvador)            |
| es-UY  | Spanish (Uruguay)                |
| es-VE  | Spanish (Venezuela)              |
| ar-EG  | Arabic (Egypt)                   |
| ar-SA  | Arabic (Saudi Arabia)            |
| ar-AE  | Arabic (United Arab Emirates)    |
| ar-MA  | Arabic (Morocco)                 |
| ar-SY  | Arabic (Syria)                   |
| ru-RU  | Russian (Russia)                 |
| pt-PT  | Portuguese (Portugal)            |
| pt-BR  | Portuguese (Brazil)              |
| fr-BE  | French (Belgium)                 |
| fr-CA  | French (Canada)                  |
| fr-CH  | French (Switzerland)             |
| fr-FR  | French (France)                  |
| de-DE  | German (Germany)                 |
| de-AT  | German (Austria)                 |
| de-CH  | German (Switzerland)             |
| ko-KR  | Korean (South Korea)             |
| ja-JP  | Japanese (Japan)                 |
| hi-IN  | Hindi (India)                    |
| tr-TR  | Turkish (Turkey)                 |
| ur-IN  | Urdu (India)                     |
| fil-PH | Filipino (Philippines)           |
| fi-FI  | Finnish (Finland)                |
| cs-CZ  | Czech (Czech Republic)           |
| hu-HU  | Hungarian (Hungary)              |
| da-DK  | Danish (Denmark)                 |
| nl-BE  | Dutch (Belgium)                  |
| pl-PL  | Polish (Poland)                  |
| ro-RO  | Romanian (Romania)               |
| sk-SK  | Slovak (Slovakia)                |
| sv-SE  | Swedish (Sweden)                 |
| hr-HR  | Croatian (Croatia)               |
| id-ID  | Indonesian (Indonesia)           |
| it-IT  | Italian (Italy)                  |
| it-CH  | Italian (Switzerland)            |
| bg-BG  | Bulgarian (Bulgaria)             |
| el-GR  | Greek (Greece)                   |
| ms-MY  | Malay (Malaysia)                 |
| ta-IN  | Tamil (India)                    |
| uk-UA  | Ukrainian (Ukraine)              |
| sq-AL  | Albanian (Albania)               |
| az-AZ  | Azerbaijani (Azerbaijan)         |
| eu-ES  | Basque (Spain)                   |
| bn-IN  | Bengali (India)                  |
| bs-BA  | Bosnian (Bosnia and Herzegovina) |
| yue-CN | Cantonese (China)                |
| ca-ES  | Catalan (Spain)                  |
| gl-ES  | Galician (Spain)                 |
| gu-IN  | Gujarati (India)                 |
| is-IS  | Icelandic (Iceland)              |
| kn-IN  | Kannada (India)                  |
| kk-KZ  | Kazakh (Kazakhstan)              |
| lv-LV  | Latvian (Latvia)                 |
| lt-LT  | Lithuanian (Lithuania)           |
| mk-MK  | Macedonian (North Macedonia)     |
| ml-IN  | Malayalam (India)                |
| mt-MT  | Maltese (Malta)                  |
| mr-IN  | Marathi (India)                  |
| mn-MN  | Mongolian (Mongolia)             |
| ne-NP  | Nepali (Nepal)                   |
| nb-NO  | Norwegian Bokmål (Norway)        |
| pa-IN  | Punjabi (India)                  |
| sl-SI  | Slovenian (Slovenia)             |
| so-SO  | Somali (Somalia)                 |
| sr-RS  | Serbian (Serbia)                 |
| sw-KE  | Swahili (Kenya)                  |
| sw-TZ  | Swahili (Tanzania)               |
| uz-UZ  | Uzbek (Uzbekistan)               |
| vi-VN  | Vietnamese (Vietnam)             |
| he-IL  | Hebrew (Israel)                  |
| fa-IR  | Persian (Iran)                   |
| th-TH  | Thai (Thailand)                  |

### Target Languages

| Code | Name             | Locale variants                                                                                                                                          |
| ---- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| en   | English          | en‑US, en‑GB, en‑AU, en‑CA, en‑HK, en‑KE, en‑NZ, en‑NG, en‑PH, en‑SG, en‑ZA, en‑TZ                                                                       |
| zh   | Chinese          | zh‑CN, zh‑HK, zh‑TW, zh‑CN‑shandong, zh‑CN‑liaoning, zh‑CN‑sichuan, zh‑CN‑henan, zh‑CN‑shaanxi, zh‑CN‑GUANGXI                                            |
| wuu  | Wu Chinese       | wuu‑CN                                                                                                                                                   |
| es   | Spanish          | es‑ES, es‑MX, es‑US, es‑AR, es‑BO, es‑CL, es‑CO, es‑CR, es‑CU, es‑DO, es‑EC, es‑SV, es‑GQ, es‑GT, es‑HN, es‑NI, es‑PA, es‑PY, es‑PE, es‑PR, es‑UY, es‑VE |
| ar   | Arabic           | ar‑DZ, ar‑BH, ar‑IQ, ar‑JO, ar‑KW, ar‑LB, ar‑LY, ar‑MA, ar‑OM, ar‑QA, ar‑SY, ar‑TN, ar‑AE, ar‑YE                                                         |
| ru   | Russian          | ru‑RU                                                                                                                                                    |
| pt   | Portuguese       | pt‑PT, pt‑BR                                                                                                                                             |
| fr   | French           | fr‑FR, fr‑CA, fr‑BE, fr‑CH                                                                                                                               |
| de   | German           | de‑DE, de‑AT, de‑CH                                                                                                                                      |
| ko   | Korean           | ko‑KR                                                                                                                                                    |
| ja   | Japanese         | ja‑JP                                                                                                                                                    |
| hi   | Hindi            | hi‑IN                                                                                                                                                    |
| tr   | Turkish          | tr‑TR                                                                                                                                                    |
| fil  | Filipino         | fil‑PH                                                                                                                                                   |
| fi   | Finnish          | fi‑FI                                                                                                                                                    |
| cs   | Czech            | cs‑CZ                                                                                                                                                    |
| da   | Danish           | da‑DK                                                                                                                                                    |
| nl   | Dutch            | nl‑BE                                                                                                                                                    |
| pl   | Polish           | pl‑PL                                                                                                                                                    |
| ro   | Romanian         | ro‑RO                                                                                                                                                    |
| sk   | Slovak           | sk‑SK                                                                                                                                                    |
| sv   | Swedish          | sv‑SE                                                                                                                                                    |
| hr   | Croatian         | hr‑HR                                                                                                                                                    |
| id   | Indonesian       | id‑ID                                                                                                                                                    |
| it   | Italian          | it‑IT, it‑CH                                                                                                                                             |
| bg   | Bulgarian        | bg‑BG                                                                                                                                                    |
| el   | Greek            | el‑GR                                                                                                                                                    |
| ms   | Malay            | ms‑MY                                                                                                                                                    |
| ta   | Tamil            | ta‑IN, ta‑MY, ta‑SG, ta‑LK                                                                                                                               |
| uk   | Ukrainian        | uk‑UA                                                                                                                                                    |
| th   | Thai             | th‑TH                                                                                                                                                    |
| vi   | Vietnamese       | vi‑VN                                                                                                                                                    |
| am   | Amharic          | am‑ET                                                                                                                                                    |
| bn   | Bengali          | bn‑IN, bn‑BD                                                                                                                                             |
| as   | Assamese         | as                                                                                                                                                       |
| bs   | Bosnian          | bs‑BA                                                                                                                                                    |
| ca   | Catalan          | ca‑ES                                                                                                                                                    |
| et   | Estonian         | et‑EE                                                                                                                                                    |
| eu   | Basque           | eu‑ES                                                                                                                                                    |
| gl   | Galician         | gl‑ES                                                                                                                                                    |
| gu   | Gujarati         | gu                                                                                                                                                       |
| he   | Hebrew           | he‑IL                                                                                                                                                    |
| hu   | Hungarian        | hu‑HU                                                                                                                                                    |
| iu   | Inuktitut        | iu‑CANS‑CA, iu‑LATN‑CA                                                                                                                                   |
| jv   | Javanese         | jv‑ID                                                                                                                                                    |
| mk   | Macedonian       | mk‑MK                                                                                                                                                    |
| mr   | Marathi          | mr                                                                                                                                                       |
| nb   | Norwegian Bokmål | nb‑NO                                                                                                                                                    |
| ne   | Nepali           | ne‑NP                                                                                                                                                    |
| or   | Oriya            | or                                                                                                                                                       |
| pa   | Punjabi          | pa                                                                                                                                                       |
| ps   | Pashto           | ps‑AF                                                                                                                                                    |
| sl   | Slovenian        | sl‑SI                                                                                                                                                    |
| sw   | Swahili          | sw‑KE, sw‑TZ                                                                                                                                             |
| te   | Telugu           | te‑IN                                                                                                                                                    |
| ur   | Urdu             | ur, ur‑IN, ur‑PK                                                                                                                                         |
| zu   | Zulu             | zu‑ZA                                                                                                                                                    |
