CambAI icon

CambAI

Interact with CambAI API for text-to-speech and voice generation

Actions4

Overview

The node integrates with the CambAI API to convert text into synthesized speech using customizable voice characteristics. It is designed for scenarios where users want to generate natural-sounding audio from textual content, such as creating voiceovers, accessibility features, or interactive voice responses.

For example, you can input a welcome message and specify a warm, friendly British-accented female voice to produce an audio file that can be used in applications, presentations, or customer service bots.

Properties

Name Meaning
Text The text content that will be converted into synthesized speech.
Voice Description A detailed description of the desired voice characteristics (minimum 18 words/100+ characters), e.g., tone, accent, age, style.
Additional Options Optional settings including:
• Polling Interval (Seconds): Time between status checks (1–10 seconds).
• Polling Timeout (Seconds): Maximum wait time for voice generation completion (60–600 seconds).

Output

The node outputs JSON data containing the result of the text-to-voice conversion. This typically includes metadata about the generated audio and a reference or URL to the synthesized speech file.

If binary data output is supported, it would represent the actual audio file (e.g., MP3 or WAV) corresponding to the synthesized speech.

Dependencies

  • Requires an API key credential for authenticating with the CambAI API.
  • Network access to https://client.camb.ai/apis endpoint.
  • Proper configuration of the API key credential within n8n.

Troubleshooting

  • Common Issues:

    • Insufficient or incorrect voice description length may cause errors; ensure the description meets the minimum word and character count.
    • Network timeouts if the polling timeout is set too low for longer synthesis tasks.
    • Authentication failures if the API key is missing or invalid.
  • Error Messages:

    • "Voice description too short": Provide a more detailed voice description with at least 18 words.
    • "Polling timeout exceeded": Increase the polling timeout value to allow more time for voice generation.
    • "Authentication failed": Verify that the API key credential is correctly configured and valid.

Links and References

Discussion