# TTS Variants

<figure><img src="/files/7FokI0487toJPLJcvrd4" alt=""><figcaption></figcaption></figure>

## Description

The OpenAI component allows you to integrate OpenAI TTS (Text-to-Speech) generation into your flows. In particular, the following versions are supported:

* *TTS*
* *TTS-HD*

The OpenAI component has the identifier of opa-**X**, where **X** represents the instance number of the OpenAI component.

## Inputs

The OpenAI component has the following input connections.

| Input Name        | Description                                                                                     | Constraints                                                                                                      |
| ----------------- | ----------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| From Data Loaders | This input connection represents the context information for the OpenAI model.                  | Must originate from a Data Loader component.                                                                     |
| From Input/LLM    | This input connection represents the natural language textual description of the desired image. | Must originate from a component that generates a text string as output such as a Python or Text Input component. |

## Component settings

| Parameter Name  | Description                                                                                                                                           |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Model           | <p>This parameter specifies the version of OpenAI that the component should use. Available values:<br>  <em>-   TTS</em><br>  <em>-   TTS-HD</em></p> |
| Voice           | Specifies the voice to use in the synthesis of the audio data.                                                                                        |
| Response format | <p>Specifies the format of the audio data that is generated.<br>Available options:<br>- MP3<br>- OPUS<br>- AAC<br>- FLAC</p>                          |
| Speed           | Controls the speed of the generated audio speech.                                                                                                     |
| Input           | Specifies the input text to convert to audio.                                                                                                         |

## Advanced configurations

This OpenAI component has no advanced configurations

## Outputs

The OpenAI component has the following output connections.

| Output Name | Description                                                                   | Constraints                                                    |
| ----------- | ----------------------------------------------------------------------------- | -------------------------------------------------------------- |
| To Output   | This output connection contains the graphical result of the OpenAI component. | Can be connected to any component that accepts a string input. |

## Use case

Here is a simple use case of the OpenAI component, where the OpenAI component is being used with the TTS-HD model, in order to generate audio data in a particular voice.

<figure><img src="/files/W5lFHF5QVrqjVvwGB98D" alt=""><figcaption></figcaption></figure>


---

# 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://docs.diaflow.io/workflow-builder/nodes/private-ai-llm-models/openai/tts-variants.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.
