---
title: "Text To Dialogue Streaming With Timestamps"
method: POST
path: "/v1/text-to-dialogue/stream/with-timestamps"
tags: ["text-to-dialogue"]
---

# Text To Dialogue Streaming With Timestamps

`POST /v1/text-to-dialogue/stream/with-timestamps`

Converts a list of text and voice ID pairs into speech (dialogue) and returns a stream of JSON blobs containing audio as a base64 encoded string and timestamps

## Query parameters

- `output_format` 'mp3_22050_32' | 'mp3_24000_48' | 'mp3_44100_32' | 'mp3_44100_64' | 'mp3_44100_96' | 'mp3_44100_128' | 'mp3_44100_192' | 'pcm_8000' | 'pcm_16000' | 'pcm_22050' | 'pcm_24000' | 'pcm_32000' | 'pcm_44100' | 'pcm_48000' | 'ulaw_8000' | 'alaw_8000' | 'opus_48000_32' | 'opus_48000_64' | 'opus_48000_96' | 'opus_48000_128' | 'opus_48000_192'
- `enable_logging` boolean — 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-key` string, 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

- BodyTextToDialogueStreamWithTimestamps
  - `inputs` DialogueInput[], required — A list of dialogue inputs, each containing text and a voice ID which will be converted into speech. The maximum number of unique voice IDs is 10. For reliable generation, keep the total character count across all `inputs[].text` values at or below 2,000 characters per request. Longer requests can terminate early in streaming responses or return a validation error.
    - `text` string, required — The text to be converted into speech.
    - `voice_id` string, required — The ID of the voice to be used for the generation.
  - `model_id` string — 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.
  - `language_code` string, nullable — Language code (ISO 639-1) used to enforce a language for the model and text normalization. If the model does not support the provided language code, it will be ignored. This parameter is not supported for multilingual_v2 models.
  - `settings` ToDialogueSettingsResponseModel
    - `stability` number, nullable — Determines how stable the voice is and the randomness between each generation. Lower values introduce broader emotional range for the voice. Higher values can result in a monotonous voice with limited emotion.
    - `similarity` number, nullable — Determines how strongly the model is guided while generating. Higher values make the model adhere more closely to the voice, at the cost of variation. Not supported by every model.
  - `pronunciation_dictionary_locators` PronunciationDictionaryVersionLocatorRequestModel[], nullable — 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
    - `pronunciation_dictionary_id` string, required — The ID of the pronunciation dictionary.
    - `version_id` string, nullable — The ID of the version of the pronunciation dictionary. If not provided, the latest version will be used.
  - `seed` integer, nullable — 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.
  - `apply_text_normalization` 'auto' | 'on' | 'off' — This parameter controls text normalization with three modes: 'auto', 'on', and 'off'. When set to 'auto', the system will automatically decide whether to apply text normalization (e.g., spelling out numbers). With 'on', text normalization will always be applied, while with 'off', it will be skipped.
  - `use_pvc_as_ivc` boolean — Whether to use the IVC version of a professional voice. This may improve expressiveness and reduce latency.
  - `previous_request_ids` string[], nullable — A list of request_ids of dialogue generations that came before this one. Used to condition the model for continuity when splitting a large task into multiple requests. A maximum of 3 request_ids can be sent. The last request_id is the audio which is closest to the current request. Not supported by every model.
  - `next_request_ids` string[], nullable — A list of request_ids of dialogue generations that come after this one. Useful for maintaining continuity when regenerating a clip in the middle of a sequence. A maximum of 3 request_ids can be sent. The first request_id is the audio which is closest to the current request. Not supported by every model.
  - `previous_text` string, nullable — The text that comes immediately before this generation, used to condition the model for prosodic continuity. A maximum of 100 characters can be sent. Not supported by every model.
  - `future_text` string, nullable — The text that comes immediately after this generation, used to condition the model for prosodic continuity. A maximum of 100 characters can be sent. Not supported by every model.

## Response `200`

Stream of transcription chunks

- StreamingAudioChunkWithTimestampsAndVoiceSegmentsResponseModel
  - `audio_base64` string, required — Base64 encoded audio data
  - `alignment` CharacterAlignmentResponseModel
    - `characters` string[], required
    - `character_start_times_seconds` number[], required
    - `character_end_times_seconds` number[], required
  - `normalized_alignment` CharacterAlignmentResponseModel
    - `characters` string[], required
    - `character_start_times_seconds` number[], required
    - `character_end_times_seconds` number[], required
  - `voice_segments` VoiceSegment[], required — Voice segments for the audio
    - `voice_id` string, required — The voice ID used for this segment
    - `start_time_seconds` number, required — Start time of this voice segment
    - `end_time_seconds` number, required — End time of this voice segment
    - `character_start_index` integer, required — Start index in the characters array
    - `character_end_index` integer, required — End index in the characters array (exclusive)
    - `dialogue_input_index` integer, required — Line of the dialogue (script) that this segment is a part of.

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-26** `4a6716242c9e` — 1 info
  - added the new optional request property `use_pvc_as_ivc`
- **2026-09-22** `6fb9be1a19f5` — 1 breaking, 5 info
  - removed `#/components/schemas/ModelSettingsResponseModel` from the `settings` request property `anyOf` list
  - added the new optional request property `future_text`
  - added the new optional request property `next_request_ids`
  - added the new optional request property `previous_request_ids`
  - …2 more

[Change history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/text-to-dialogue/stream/with-timestamps/post.md)

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/revisions/4a6716242c9e?raw)
