> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text to Speech Node

> Generate audio from text

<img src="https://mintcdn.com/vectorshift/fUdgBpX7VNpDIEaX/images/platform/pipelines/multi-modal/text-to-speech.png?fit=max&auto=format&n=fUdgBpX7VNpDIEaX&q=85&s=2c03a02aa1017a4fbd64f90d3b13d6ed" alt="Text to Speech" width="576" height="374" data-path="images/platform/pipelines/multi-modal/text-to-speech.png" />

The text to speech node allows you to generate audio from text.

## Node Inputs

1. Text: The text to convert to audio
   * Type: `Text`

## Node Parameters

1. Provider: Provider of the text to speech model you want to use. The default provider is OpenAI.
2. Model: Specific model you want to use.
3. Voice: The voice for the generated audio.
4. Use Personal Api Key: This allows you to enter your API key.

## Node Outputs

1. Audio: The text converted to audio
   * Type: `Audio`
   * Example usage: `{{ai_text_to_speech_0.audio}}`

## Example

The below example shows a pipeline that takes audio input, converts it to text, processes it with an LLM, and converts the response back to audio.

1. Input Node: Contains the input audio (recorded through the VectorShift platform)
2. Speech to Text Node: Converts the audio to text
   * Audio: `{{input_0.audio}}`
3. LLM Node: Processes the text / Answers the user question
   * Input: `{{ai_speech_to_text_0.text}}`
4. Text to Speech Node: Converts the LLM response to audio
   * Text: `{{openai_0.response}}`
5. Output: The final audio response
   * Output: `{{ai_text_to_speech_0.audio}}`

<img src="https://mintcdn.com/vectorshift/fUdgBpX7VNpDIEaX/images/platform/pipelines/multi-modal/speech-to-text-example.png?fit=max&auto=format&n=fUdgBpX7VNpDIEaX&q=85&s=08cf8bc919a5a3932233ffd81d2209a7" alt="Text to Speech Example" width="1905" height="834" data-path="images/platform/pipelines/multi-modal/speech-to-text-example.png" />

## Pricing

| Provider   | Model                    | Input cost per 1000 characters |
| ---------- | ------------------------ | ------------------------------ |
| OpenAI     | tts-1                    | 0.015                          |
| OpenAI     | tts-1-hd                 | 0.03                           |
| ElevenLabs | eleven\_monolingual\_v1  | 0.11                           |
| ElevenLabs | eleven\_multilingual\_v1 | 0.11                           |
| ElevenLabs | eleven\_multilingual\_v2 | 0.11                           |
| ElevenLabs | eleven\_turbo\_v2        | 0.055                          |
| ElevenLabs | eleven\_turbo\_v2\_5     | 0.055                          |
| ElevenLabs | eleven\_flash\_v2\_5     | 0.055                          |
| ElevenLabs | eleven\_flash\_v2        | 0.055                          |
