Transformar Voz
AI-generatedOverview
The ElevenLabs Voice Changer node allows users to transform the voice in an audio file from one voice to another using the ElevenLabs API. It is particularly useful for scenarios such as dubbing, voiceover modifications, or creative audio projects where changing the speaker's voice is desired without re-recording.
Typical use cases include:
- Converting a recorded speech or singing audio into a different voice style.
- Creating voice variations for characters in podcasts or audiobooks.
- Enhancing accessibility by adapting voices to preferred tones or accents.
Users can provide the source audio either as a binary file within n8n or via a URL, specify the target voice ID, and configure advanced options like voice similarity, stability, output format, and input audio type.
Properties
| Name | Meaning |
|---|---|
| Fonte do Áudio | Source of the audio file to process. Options: "Arquivo Binário" (binary file), "URL" (audio 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). |
| ID da Voz de Destino | ID of the target voice to which the audio will be converted. |
| Nome do Campo Binário de Saída | Name of the binary field where the processed audio will be stored. |
| Similaridade com Voz Original | How similar the output voice should be to the original voice, from 0 to 1 (default 0.75). |
| Estabilidade | Stability of the voice, from 0 to 1; higher values make the voice more consistent (default 0.5). |
| Formato de Saída | Output audio file format. Options: MP3, FLAC, WAV, PCM 16-bit at various sample rates. |
| Tipo de Áudio de Entrada | Type of input audio: "Fala" (speech) or "Canto" (singing). |
Output
The node outputs an array of items, each containing:
json: An object with:success: Boolean indicating if the operation succeeded.voiceId: The ID of the target voice used.- Advanced option values as provided in the input.
binary: A binary property (name configurable by the user) containing the transformed audio file data.pairedItem: Metadata linking the output item to the corresponding input item index.
The binary data represents the audio file converted to the specified output format (e.g., MP3, FLAC, WAV).
Dependencies
- Requires an active ElevenLabs API key credential configured in n8n.
- Uses the ElevenLabs voice changer API endpoint with POST requests.
- Relies on n8n helper methods for handling binary data and HTTP requests.
Troubleshooting
- No binary data found: If the source is set to binary file but the specified binary property does not exist or is empty, the node throws an error. Ensure the correct binary property name is provided and that the input contains valid audio data.
- Invalid voice ID: Providing an incorrect or non-existent voice ID may cause API errors. Verify the voice ID is valid and accessible with your API credentials.
- Unsupported audio format: The node expects certain audio formats; ensure the input audio is compatible or properly encoded.
- API request failures: Network issues or invalid API keys can cause request errors. Check API credentials and network connectivity.
- Output format mismatches: Selecting an unsupported output format might lead to unexpected results. Use one of the supported formats listed in the properties.
Links and References
- ElevenLabs API Documentation (for detailed API usage and voice IDs)
- n8n Documentation on Binary Data Handling