---
title: "Run Multispeaker TTS Model"
method: POST
path: "/tts/multispeaker"
---

# Run Multispeaker TTS Model

`POST /tts/multispeaker`

## Request

- Base URL: `https://api.vogent.ai/api`
- URL: `https://api.vogent.ai/api/tts/multispeaker`
- Auth: HTTP bearer

Runs a multispeaker (conversational) text to speech model and generates audio. Bytes will be streamed to the client as they are generated.

## Request body

- RunMultispeakerTTSInput
  - `lines` MultispeakerLine[], required: The lines that need to be generated.
    - `text` string, required: The text to generate.
    - `voiceId` string, required: The voice ID to use to generate the text.
  - `voiceOptionValues` ModelOptionValue[]: An optional configuration for the voices being used.
    - `optionId` string, required: The ID of option.
    - `value` string, required
  - `format` OutputFormat
    - `outputType` 'RAW_PCM16' | 'WAV_PCM16' | 'MP3', required: The output format type for audio generation.
    - `sampleRate` integer, required: The sample rate for the audio output. Must be one of 8000, 16000, 22050, 24000, 41500, or 48000

## Response `200`

Returns a file with the audio.

## Other responses

- `400`: Invalid input
- `422`: Validation exception

---

[API](https://skmtc.dev/vogent/apis/vogent-openapi-3-0.md) - [All operations](https://skmtc.dev/vogent/apis/vogent-openapi-3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/vogent/apis/vogent-openapi-3-0/revisions/a5966cc364ef?raw)
