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#
- Model resolution: The configured connection and model are validated against the SpeechGenerator model kind
- Provider dispatch: The provider ID is matched to ElevenLabs or InWorld
- API request: The text and voice parameters are sent to the provider's TTS endpoint
- Response handling: The returned audio bytes and content type are packaged into the binary output object
- Downstream flow: Use
upload_mediato 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 bytesfilename: 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_mediadownstream to persist to workspace storage
Inputs
inputRequired
Outputs
output
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
model | model | Yes | Choose a speech generation connection and model. |
text | text_block | Yes | Text to speak |
voice_id | model_voice | Yes | Voice from the selected speech model. |
speed | number | Yes | Optional speech speed |
stability | number | Yes | Optional speech stability |
similarity_boost | number | Yes | Optional similarity boost |
language_code | string | Yes | Optional language code |
output_format | string | Yes | Optional output format |
base_config | record | No | Shared 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). |