Skip to main content

Generate speech

Description

Generates speech from text using OpenAI, converting text responses into audio files. This middleware can be used to provide voice responses in addition to text.

Inputs

OpenAIopenaiRequired

Modeltext

  • Default option: tts-1
  • Options
    • gpt-4o-mini-ttsgpt-4o-mini-tts
    • TTStts-1
    • TTS HDtts-1-hd

Voicetext

  • Default option: alloy
  • Options
    • Alloyalloy
    • Echoecho
    • Fablefable
    • Onyxonyx
    • Novanova
    • Shimmershimmer

Instructionstext