Localize Voice

POST

Takes a voice embedding, and target language, and localizes the voice to the specific language. For certain languages, this improves the quality of the accent.

Pricing: This endpoint costs 225 characters of utilization per call.

Headers

Auth
X-API-KeystringRequired
Cartesia-VersionstringRequired

The version of the Cartesia API to use.

Request

This endpoint expects an object.
embeddinglist of doublesRequired
languageenumRequired

Target language, which the output embedding will be localized to. Options: en (English), de (German), es (Spanish), fr (French), ja (Japanese), pt (Portuguese), zh (Chinese).

original_speaker_gender"male" or "female"Required
Allowed values: malefemale

Speaker gender of the original speaker, used to accurately localize voice.

dialectenumOptional
Allowed values: auinsoukus

Target accent/dialect, which the output embedding will be localized to. Currently only supported for language en. Options: au (Australian), in (Indian), so (Southern [American]), uk (British), us (American).

Response

This endpoint returns an object.
embeddinglist of doubles