text-to-dialogue
Text To Dialogue With Timestamps
Changed onGenerate dialogue from text with precise character-level timing information for audio-text synchronization.
post/v1/text-to-dialogue/with-timestamps
Request
- Base URLhttps://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.elevenlabs.io/v1/text-to-dialogue/with-timestamps
- Authnone declared
Query parameters
enable_loggingboolean
When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers.
Headers
xi-api-keystring nullable
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
Request body
Example request
{
"inputs": [
{
"text": "Hello, how are you?",
"voice_id": "bYTqZQo3Jz7LQtmGTgwi"
},
{
"text": "I'm doing well, thank you!",
"voice_id": "6lCwbsX1yVjD49QmpkTR"
}
],
"language_code": "en",
"settings": {
"stability": 0.5
},
"pronunciation_dictionary_locators": [
{
"pronunciation_dictionary_id": "test",
"version_id": "id2"
}
],
"seed": 12345,
"use_pvc_as_ivc": true
}Response
Successful Response
Example response
{
"alignment": {
"character_end_times_seconds": [
0.1,
0.2,
0.3,
0.4,
0.5,
0.6,
0.7
],
"character_start_times_seconds": [
0,
0.1,
0.2,
0.3,
0.4,
0.5,
0.6
],
"characters": [
"H",
"e",
"l",
"l",
"o",
"H",
"i"
]
},
"audio_base64": "base64_encoded_audio_string",
"normalized_alignment": {
"character_end_times_seconds": [
0.1,
0.2,
0.3,
0.4,
0.5,
0.6,
0.7
],
"character_start_times_seconds": [
0,
0.1,
0.2,
0.3,
0.4,
0.5,
0.6
],
"characters": [
"H",
"e",
"l",
"l",
"o",
"H",
"i"
]
},
"voice_segments": [
{
"character_end_index": 5,
"character_start_index": 0,
"dialogue_input_index": 0,
"end_time_seconds": 0.5,
"start_time_seconds": 0,
"voice_id": "21m00Tcm4TlvDq8ikWAM"
},
{
"character_end_index": 7,
"character_start_index": 5,
"dialogue_input_index": 1,
"end_time_seconds": 0.7,
"start_time_seconds": 0.5,
"voice_id": "VEDscrYI8uIMttlO2Ztu"
}
]
}Changes
- info
added the new optional request property
// - info
request property
deprecated
- info
- info
the
request property default valuefalsewas removed - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json
- info