# Text to Speech

### OpenAI TTS

The **Text to Speech (TTS)** node allows you to convert text into spoken audio using AI-generated voices. Below is a breakdown of the key components:

* **Label**: You can rename it based on your specific use case or workflow.
* **Input**: This required field is where you enter the text that will be converted into speech. The text input can be a sentence, paragraph, or any other text-based content.
* **Voice**: This setting allows you to choose the voice that will be used to speak the text. In this example, the voice option is set to "echo," but you can select from a variety of available voices based on your needs.
* **Format**: This defines the audio format in which the output speech will be generated. The default is set to `.mp3`, but other formats may be available, such as `.wav` or `.ogg`, depending on the model's capabilities.
* **Fallback Outputs**: This field allows you to define an alternative output or action in case the text-to-speech conversion fails, ensuring that your workflow continues.
* **Results**: The generated audio file will appear here once the text is successfully converted to speech. This output can then be used in subsequent nodes or saved as needed.

#### Usage

This node is ideal for applications where you need to convert text into speech, such as generating audio responses, narrations, or voiceovers. It can be particularly useful in chatbots, virtual assistants, or any scenario where text-based input needs to be converted into spoken output.

***

We’d love to hear from you! Reach out to **<documentation@integrail.ai>**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.integrail.ai/agent-studio/editor/text-to-speech.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
