Once the task is complete, the outputs can be retrieved using these endpoints:
/translation-result/{run_id}: Returns the translated text./tts-result/{run_id}: Returns the generated voiceover audio
How It Works
When you submit a request to this endpoint, our system processes your input text through a streamlined workflow:- First, the system creates a dedicated task and returns a unique
task_idfor tracking. - Your source text is then accurately translated to the target language using advanced neural machine translation models that preserve meaning andn context.
- Finally, the translated text is converted into natural-sounding speech using language-specific voice models that capture the appropriate pronunciation and intonation of the target language.
- You can monitor the status of your request by polling the
/translated-tts/{task_id}endpoint until processing is complete.
Creating Your First Translated Text-to-Speech Request
Let’s examine how to initiate a translated text-to-speech task using Python:Monitoring Your Translation and Speech Generation Progress
After submission, your task enters our processing pipeline. You can monitor the progress by polling the status endpoint:Retrieving Your Results
Once your task is complete, you can retrieve both the translated text and the generated audio using the provided run_id:Best Practices for Translated Text-to-Speech
To achieve the highest quality results for your multilingual audio content:- Provide Clear Source Text: Ensure your source text is free of grammatical errors, unusual abbreviations, or ambiguous phrases to improve translation accuracy.
- Consider Cultural Context: Be mindful of cultural references that may not translate effectively across languages, and adapt your content accordingly.
- Use Appropriate Sentence Length: For optimal speech generation, break long, complex sentences into shorter ones, especially for languages that differ structurally from the source.
Supported Languages & Voices
Our system supports a wide range of language pairs for translation and speech synthesis. The quality and naturalness of speech may vary depending on the specific language combinations. Checkout the/target-languages endpoint for a list of supported languages and /list-voices endpoint for a list of available voices which includes public voices and your own custom voices.Authorizations
Body
application/json
Available options:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 139, 140, 141, 142, 143, 144, 145, 146, 148 Available options:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150 Available options:
1, 2 Available options:
0, 1, 2, 9 Minimum length:
1Required string length:
3 - 255Required string length:
3 - 5000Required range:
x >= 1