Skip to main content
POST
Create Translated Tts
Transform written content across language barriers with our powerful translated text-to-speech system. This innovative endpoint enables you to seamlessly convert text from one language into spoken audio in another language in a single streamlined process. Whether youโ€™re creating multilingual content, developing educational materials, building accessible applications, or expanding your global reach, this capability allows you to quickly generate localized audio content while maintaining natural pronunciation and intonation specific to the target language.
Once the task is complete, the outputs can be retrieved using these endpoints:

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_id for 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:
  1. Provide Clear Source Text: Ensure your source text is free of grammatical errors, unusual abbreviations, or ambiguous phrases to improve translation accuracy.
  2. Consider Cultural Context: Be mindful of cultural references that may not translate effectively across languages, and adapt your content accordingly.
  3. 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

x-api-key
string
header
required

The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.

Body

application/json

Parameters for initiating a translation and text-to-speech task, including source text, language preferences, and voice characteristics.

text
string
required

The input text content that you want to translate and convert to speech. Provide clear, well-structured text for optimal results.

voice_id
integer
default:147320
required

A unique identifier for the specific voice to use for speech synthesis in the target language. Each voice has distinct characteristics including tone, accent, and speaking style.

source_language
string
required

The language of the input text. Pass a locale tag (en-us, fr-fr, es-es). Numeric language IDs (1 or "1") still work but are deprecated. See all source languages.

Example:

"en-us"

target_language
string
required

The target output language. Pass a locale tag (fr-fr, es-es, de-de). Numeric language IDs still work but are deprecated. See all target languages.

Example:

"fr-fr"

project_name
string | null

Enter a distinctive name for your project that reflects its purpose or content. This name will be displayed in your CAMB.AI workspace dashboard and used to organize related assets, transcriptions, etc.. . Choose something memorable that helps you quickly identify this specific project among your other voice, audio and localization tasks.

Required string length: 3 - 255
Example:

null

project_description
string | null

Provide details about your project's goals and specifications. Include information such as the target languages for translation or dubbing, desired voice characteristics, emotional tones to capture, or specific audio processing requirements, outlining the workflow here can serve as valuable documentation for organizational purposes.

Required string length: 3 - 5000
Example:

null

age
integer | null
default:28

The simulated age of the speaker in years, which influences voice characteristics. Defaults to 28 if not specified. Set to null to use the default voice age.

formality
enum<integer> | null
default:2

The level of formality to use for the translation. Values range from casual (1), with a default of 2 (formal). This affects the translation's tone and word choice based on cultural norms of the target language.

Available options:
1,
2
gender
enum<integer> | null
default:1

The gender of the synthesized voice. Influences voice characteristics based on typical speech patterns. Defaults to 1 (typically representing male).

Available options:
0,
1,
2,
9
chosen_dictionaries
integer[] | null

An optional list of dictionary IDs selected by the user. Each entry must be an integer corresponding to a valid dictionary ID. If provided, at least one ID is required.

Minimum array length: 1

Response

Successful Response

Last modified on May 22, 2026