Generate SFX
generate_sfx · Nodes · AI
Generate a sound effect from a text prompt using a configured SFX provider.
Generate SFX#
Generates sound effects from text prompts using ElevenLabs Sound Effects. Produces short audio clips for UI sounds, game effects, and creative projects.
What It Does#
The Generate SFX node takes a sound prompt describing the desired effect and sends it to ElevenLabs Sound Effects through a workspace connection. The provider generates a short audio clip, which is returned as a binary object on the output socket.
Key capabilities:
- Text-to-sound: Generate sound effects from natural language descriptions
- Duration control: Specify desired length between 0.5 and 30 seconds
- Prompt influence: Control how closely the output follows the prompt
- Binary output: Returns raw audio bytes with content type and filename
When to Use#
- Creating UI sound effects (button clicks, notifications)
- Generating ambient background sounds
- Producing foley effects for video or audio projects
- Building game sound assets
- Creating alert or notification sounds
How It Works#
- Model resolution: The configured connection and model are validated against the SfxGenerator model kind
- Provider dispatch: The provider ID is matched to ElevenLabs
- API request: The prompt and optional duration/influence parameters are sent to ElevenLabs Sound Effects
- 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 prompt interpolation |
Configuration#
| Field | Type | Required | Description |
|---|---|---|---|
model |
model | Yes | Sound effect generation connection and model |
prompt |
text | Yes | Sound prompt describing the effect to generate. Supports template interpolation |
duration_seconds |
number | No | Desired duration in seconds (0.5-30) |
prompt_influence |
number | No | How closely output follows the prompt (0-1) |
output_format |
string | No | Desired output format |
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.,sfx.mp3)content_type: MIME type (e.g.,audio/mpeg)
Supported Providers#
| Provider | Models | Notes |
|---|---|---|
| ElevenLabs | eleven_sound_effects_v1 | Custom xi-api-key header, MP3 output |
Caveats#
- Duration must be between 0.5 and 30 seconds (provider-enforced)
prompt_influencecontrols how strongly the output matches the prompt description- Output is a raw binary object; use
upload_mediadownstream to persist to workspace storage - ElevenLabs is currently the only supported SFX provider
Inputs
inputRequired
Outputs
output
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
model | model | Yes | Choose a sound effect generation connection and model. |
prompt | text_block | Yes | Sound prompt describing the effect to generate |
duration_seconds | number | Yes | Optional duration in seconds (0.5-30) |
prompt_influence | number | Yes | Optional prompt influence (0-1) |
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). |