Contents

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#

  1. Model resolution: The configured connection and model are validated against the SfxGenerator model kind
  2. Provider dispatch: The provider ID is matched to ElevenLabs
  3. API request: The prompt and optional duration/influence parameters are sent to ElevenLabs Sound Effects
  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 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 bytes
  • filename: 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_influence controls how strongly the output matches the prompt description
  • Output is a raw binary object; use upload_media downstream to persist to workspace storage
  • ElevenLabs is currently the only supported SFX provider

Inputs

  • inputRequired

Outputs

  • output

Configuration

FieldTypeRequiredDescription
modelmodelYesChoose a sound effect generation connection and model.
prompttext_blockYesSound prompt describing the effect to generate
duration_secondsnumberYesOptional duration in seconds (0.5-30)
prompt_influencenumberYesOptional prompt influence (0-1)
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).