Adicionar Efeitos Sonoros
AI-generatedOverview
This node allows users to add various sound effects to audio files using the ElevenLabs API. It supports processing audio either from a binary file input or directly from a URL. Users can apply multiple effects such as ambience, echo, reverb, background noise, highpass and lowpass filters, or custom named effects with configurable intensity and timing.
Common scenarios include enhancing podcasts, adding environmental sounds to voice recordings, creating audio atmospheres for videos, or applying audio filters for creative projects. For example, you could add a concert hall reverb effect to a vocal track or simulate background noise like an airport ambiance.
Properties
| Name | Meaning |
|---|---|
| Fonte do Áudio | Source of the audio file to process: "Arquivo Binário" (binary file) or "URL" |
| Campo Binário | Name of the binary property containing the audio file (required if source is binary file) |
| URL do Áudio | URL of the audio file to process (required if source is URL) |
| Efeitos | Collection of sound effects to apply. Each effect includes: |
| - Tipo de Efeito: ambience, echo, reverb, background, highpass, lowpass, or custom | |
| - Nome do Efeito Personalizado: name of custom effect (if selected) | |
| - Intensidade: intensity of the effect (0 to 1) | |
| - Tempo de Início (segundos): start time in seconds | |
| - Tempo de Finalização (segundos): end time in seconds (0 means until end) | |
| Nome do Campo Binário de Saída | Name of the binary property where the processed audio will be stored (required) |
| Opções Avançadas | Advanced options including: |
| - Formato de Saída: output audio format, options are MP3, FLAC, WAV, PCM 16-bit at various rates |
Output
The node outputs a single item per input with the following structure:
json:success: boolean indicating operation success (true)effects: array of applied effects with their parameters- Other advanced options used during processing
binary:- Contains the processed audio file under the user-defined binary property name.
- The audio is returned in the specified output format (e.g., mp3, flac, wav).
- The filename is generated dynamically with a timestamp and appropriate extension.
This output can be used downstream in workflows for further processing, storage, or playback.
Dependencies
- Requires an active API key credential for the ElevenLabs API.
- The node makes HTTP POST requests to the ElevenLabs "sound-effects" endpoint.
- No additional environment variables are needed beyond the API authentication setup.
Troubleshooting
- No Effects Added Error: If no effects are configured, the node throws an error prompting to add at least one effect.
- Missing Binary Data: When using binary file input, if the specified binary property does not exist or contains no data, an error is thrown.
- Invalid Audio URL: If the URL source is selected but the URL is empty or invalid, the request will fail.
- API Errors: Any errors returned by the ElevenLabs API are caught and handled gracefully, providing descriptive messages.
- Output Format Issues: Ensure the chosen output format is supported; otherwise, the node may default to MP3.
To resolve issues, verify that all required properties are correctly set, the API key is valid, and the audio source is accessible.
Links and References
- ElevenLabs API Documentation (for detailed API capabilities and sound effects parameters)
- n8n Documentation on Creating Custom Nodes