TTS OpenAI Http
  • 05 May 2025
  • 1 Minute to read
  • Contributors
  • PDF

TTS OpenAI Http

  • PDF

Article summary

OpenAI Text To Speech Integration Node

Parameters

name
description
default
OpenAI API TokenOpenAI API Key
OpenAI ModelOpenAI Model For TTSgpt-4o-mini-tts
OpenAI Voice NameThe name of the voicealloy
OpenAI TTS InstructionsSpecific instructions for OpenAI TTS, can be detailed for more specializationSpeak in a cheerful and positive tone.
OpenAI TTS SpeedSpeed of the TTS Voice1.0

Inputs

Audio

none

Events

namedescriptionknown nodes that generate this event
Every Event that Contains the Data.Text fieldA TTS Synthesis audio can be generated from any event that is text based. Users can also generate their custom event that has Data.Text and send it through the Entry, or External Relay nodes.SR Http, SR WebSocket, Translate

Outputs

Audio

Syntesized speech is sent to output in PCM16 Format With a Wave header.

Events

namedescription
Start of TTS FragmentThis event is sent just before a TTS operation writes the result to Audio output. Contains the Text that was used for the synthesis under the Data.Text field.
End of TTS FragmentThis event is send just after a TTS operation has finished writing to Audio output.

Remarks

Requirements

The node needs an OpenAI Api key to perform. To learn more about getting an API Key and finding it, you can refer to the OpenAI Api page.

After getting your API Key, you can learn about finding and securely using your key following the instructions on this page.

You can also see which models are available through the OpenAI Models page.

The list of available voices can be found here

Custom TTS Event

A sample tts-request event would look as follows.

{
    "Event": {
        "Name": "Custom TTS Event",
        "Channel": 0,
        "Data" : {
            "Text": "hello world"
        }
    }
}

Channel: Channel number is necessary for locating the node that will perform the TTS operation.
Data.Text: The text that will be synthesized.

Sending Custom Events to Projects

To learn more about sending Events to projects, you can check the HTTP and External Relay pages.

Project Structure

The project structures defined in TTS Http page all apply to this node as well.

Supported flow types

Stream, Batch

Release Notes

v3.7.0
  • Introduced node.

Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.