> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/workflow-builder/nodes/private-ai-llm-models/openai/tts-model.md).

# TTS Model

<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>
