ElevenLabs icon

ElevenLabs

WIP

Voice → Generate Voice

AI-generated

Overview

The "Generate Voice" operation of the Voice resource in this node allows users to create a synthetic voice sample based on specified speaker characteristics such as gender, accent, and age. It generates a temporary voice ID along with an audio sample that can be previewed. If the generated voice is satisfactory, users can then call another operation ("Create Voice") with the generated voice ID to save or use the voice permanently.

This node is useful for applications involving text-to-speech synthesis where customized voices are needed, such as:

  • Creating personalized voice assistants.
  • Generating audio content with specific voice traits.
  • Testing different voice styles before committing to a final voice creation.

Example: Generate a female British-accented young adult voice sample reading a custom text snippet, then decide whether to save it as a reusable voice.

Properties

Name Meaning
Gender Name or ID The gender of the speaker. Choose from a predefined list or specify an ID dynamically using expressions.
Accent Name or ID The accent of the speaker. Choose from a predefined list or specify an ID dynamically using expressions.
Age Name or ID The age group of the speaker. Choose from a predefined list or specify an ID dynamically using expressions.
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 for voice generation.
• Accent Strength: Numeric value controlling how strong the accent should be (range 0.3 to 2, 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 attached to the output item.

The binary data represents the audio file of the synthesized voice sample, which can be played back or saved. Users can rename the binary data and file name via input properties.

Dependencies

  • Requires an API key credential for authentication with the ElevenLabs API.
  • The node makes HTTP POST requests to the ElevenLabs API endpoint at https://api.elevenlabs.io/v1.
  • No other external dependencies are indicated.

Troubleshooting

  • Common issues:

    • Invalid or missing API key will cause authentication errors.
    • Providing invalid IDs or unsupported values for gender, accent, or age may result in API errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Authentication failures: Check that the API key credential is correctly configured.
    • Validation errors: Ensure that selected options for gender, accent, and age exist and are valid.
    • Rate limiting or quota exceeded: Verify API usage limits with ElevenLabs service.

Links and References

Discussion