# TTS Variants

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2F1g3tXNyPvakqZ8u6oegp%2Fimage.png?alt=media&#x26;token=903b2ed6-c8cc-40cf-8406-c2085f06f44a" 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="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FVgQMyRLBX7iv7vRcZ0vo%2Fimage.png?alt=media&#x26;token=431e0862-746c-4b88-a8fd-f5947a142a97" alt=""><figcaption></figcaption></figure>
