Actions16
Overview
The "Generate Voice" operation of the ElevenLabs node allows users to create a synthetic voice sample based on specified speaker characteristics such as gender, accent, and age. It returns a generated voice ID along with an audio sample. This is useful for applications like voiceover generation, text-to-speech demos, or creating custom voice profiles. After generating a voice sample, users can proceed to create a full voice profile by referencing the returned generated voice ID.
Practical examples:
- Generating a quick audio preview of a new voice style before committing to full voice creation.
- Creating personalized voice samples for use in podcasts, audiobooks, or virtual assistants.
- Testing different voice parameters (gender, accent, age) to find the best fit for a project.
Properties
Name | Meaning |
---|---|
Gender Name or ID | The gender of the speaker. Choose from a predefined list or specify an ID using an expression. |
Accent Name or ID | The accent of the speaker. Choose from a predefined list or specify an ID using an expression. |
Age Name or ID | The age group of the speaker. Choose from a predefined list or specify an ID using an expression. |
Additional Fields | A collection of optional fields: • Binary Name: Change the output binary data name (default: "data"). • File Name: Change the output file name (default: "voice"). • Sample Text: Text used to generate the voice sample. • Accent Strength: Numeric value between 0.3 and 2 controlling how strong the accent is applied (default: 1). |
Output
The node outputs JSON data containing at least:
generated_voice_id
: An identifier for the generated voice sample.- An audio sample of the generated voice, provided as binary data.
The binary output contains the audio file representing the generated voice sample. Users can customize the binary property name and file name via input properties.
Dependencies
- Requires an API key credential for ElevenLabs API authentication.
- Makes HTTP POST requests to the ElevenLabs API endpoint at
https://api.elevenlabs.io/v1
. - The node depends on the availability of the ElevenLabs service for voice generation.
Troubleshooting
- Common issues:
- Invalid or missing API key will cause authentication errors.
- Providing unsupported or incorrect gender, accent, or age values may result in API errors.
- Network connectivity problems can prevent successful API calls.
- Error messages:
- Authentication failures: Verify that the API key credential is correctly configured.
- Validation errors: Check that all required fields (gender, accent, age, accent strength) are set and valid.
- Rate limiting or service unavailability: Retry after some time or check ElevenLabs service status.