Create dialogue

Eleven v3 API access is currently not publicly available, but will be soon.

Converts a list of text and voice ID pairs into speech (dialogue) and returns audio.

Headers

xi-api-keystringOptional

Query parameters

output_formatenumOptionalDefaults to mp3_44100_128

Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.

Request

This endpoint expects an object.
inputslist of objectsRequired
A list of dialogue inputs, each containing text and a voice ID which will be converted into speech.
model_idstringOptionalDefaults to eleven_v3

Identifier of the model that will be used, you can query them using GET /v1/models. The model needs to have support for text to speech, you can check this using the can_do_text_to_speech property.

settingsobjectOptional
Settings controlling the dialogue generation.
pronunciation_dictionary_locatorslist of objectsOptional

A list of pronunciation dictionary locators (id, version_id) to be applied to the text. They will be applied in order. You may have up to 3 locators per request

seedintegerOptional
If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed. Must be integer between 0 and 4294967295.

Response

The generated audio file

Errors