TTS Variants

Convert written text into natural-sounding speech, facilitating seamless communication and accessibility in your Flows.

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

  • TTS-1

  • TTS-1 HD

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

The OpenAI component has the following parameters that can be specified directly on the UI component.

Parameter NameDescription

Voice

Specifies the voice to use in the synthesis of the audio data.

Response Format

Specifies the format of the audio data that is generated. Available options: - MP3 - OPUS - AAC - FLAC

Speed

Controls the speed of the generated audio speech.

Input

Specifies the input text to convert to audio. This must be in double curly bracket format, for example {{in-0}}.

The OpenAI component has the following input connections.

Input NameDescriptionConstraints

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 user query for the OpenAI model.

Must originate from a component that generates a text string as output such as a Python or Text Input component.

Component Outputs

The OpenAI component has the following output connections.

Output Name FormatDescriptionConstraints

To Output

This output connection contains the audio data result of the OpenAI component.

Can be connected to any component that accepts a string input or audio input.

The OpenAI component has the following configuration options.

Configuration Option NameDescription

Description

This is a user supplied textual description of the OpenAI component.

Use Cases

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

Last updated