Contents

Generate Speech

generate_speech · Nodes · AI

Generate speech audio from text using a configured speech provider.

Generate Speech#

Generates speech audio from text using a configured text-to-speech provider. Supports ElevenLabs and InWorld.

What It Does#

The Generate Speech node takes input text and a selected model-catalog voice and sends them to your configured TTS provider through a workspace connection. The provider generates speech audio, which is returned as a binary object on the output socket.

Key capabilities:

  • Text-to-speech: Convert written text to natural-sounding audio
  • Voice selection: Specify the voice to use for generation
  • Fine-tuning: Adjust speed, stability, and similarity for natural output
  • Binary output: Returns raw audio bytes with content type and filename

When to Use#

  • Generating voiceovers for videos or presentations
  • Creating audio versions of documents or articles
  • Building automated voice response systems
  • Producing multilingual content (provider-dependent)

How It Works#

  1. Model resolution: The configured connection and model are validated against the SpeechGenerator model kind
  2. Provider dispatch: The provider ID is matched to ElevenLabs or InWorld
  3. API request: The text and voice parameters are sent to the provider's TTS endpoint
  4. Response handling: The returned audio bytes and content type are packaged into the binary output object
  5. Downstream flow: Use upload_media to persist the audio to workspace storage

Inputs#

Name Type Required Description
input any No Optional input data for text interpolation

Configuration#

Field Type Required Description
model model Yes Speech generation connection and model
text text Yes Text to convert to speech. Supports template interpolation
voice_id model voice Yes Voice for the selected speech connection and model. Provider descriptions are shown when available.
speed number No Speech speed (0.5-2.0, provider-dependent)
stability number No Voice stability (0-1, ElevenLabs only)
similarity_boost number No Voice similarity boost (0-1, ElevenLabs only)
language_code string No Language code for multilingual generation
output_format string No Desired output format (provider-dependent)

Output#

Name Type Description
output object Binary audio output with binary, filename, content_type fields

The output object includes:

  • binary: Raw audio bytes
  • filename: Generated filename (e.g., speech.mp3, speech.wav)
  • content_type: MIME type (e.g., audio/mpeg, audio/wav)

Supported Providers#

Provider Models Notes
ElevenLabs Speech models from the configured connection Voices are listed for the selected connection and model
InWorld Speech models from the configured connection Voices are listed for the selected connection and model

Notes#

  • Speed, stability, and similarity_boost are ElevenLabs-specific parameters
  • Voice availability is scoped to the selected workspace connection and speech model; save a valid provider voice ID for that selection
  • Provider-authored voice descriptions are optional metadata and do not affect generation
  • Output is a raw binary object; use upload_media downstream to persist to workspace storage

Inputs

  • inputRequired

Outputs

  • output

Configuration

FieldTypeRequiredDescription
modelmodelYesChoose a speech generation connection and model.
texttext_blockYesText to speak
voice_idmodel_voiceYesVoice from the selected speech model.
speednumberYesOptional speech speed
stabilitynumberYesOptional speech stability
similarity_boostnumberYesOptional similarity boost
language_codestringYesOptional language code
output_formatstringYesOptional output format
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).