Skip to main content

Perform text to speech using OpenAI

Convert a piece of text into an audio file.

Application

  • OpenAI GPT

Inputs (what you have)

NameDescriptionData TypeRequired?Example
TextThe text to generate audio for. The maximum length is 4096 characters.Text (Long)Yes
VoiceThe voice to use when generating the audio. Previews of the voices are available here: https://platform.openai.com/docs/guides/text-to-speech/voice-optionsPre-defined choice listYes
ModelDefaults to using the tts-1 model optimized for speedPre-defined choice listNo
Output file formatDefaults to mp3 format output audio filePre-defined choice listNo
SpeedThe speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the defaultNumber w/ decimalsNo

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Audio fileThe output audio fileFileYes

Outcomes

NameDescription
SuccessThis status is selected if the speech is recorded successfully to text
Impossible to completeThis status is selected in the event of the following scenarios:The text provided has more than 4096 charactersVoice, Model, Output file format, or Speed provided are not in the acceptable inputs

Requirements

  • N/A