CambAI icon

CambAI

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

Actions4

Overview

The node "CambAI" integrates with the CambAI API to provide advanced dubbing capabilities, specifically supporting an "End-to-End Dubbing" operation under the "Dubbing" resource. This operation allows users to input a video URL and automatically generate dubbed versions of the video in one or more target languages. The node handles the entire dubbing workflow, including submitting the media for processing, polling for completion status, and returning the final dubbed output.

This node is beneficial in scenarios such as:

  • Localizing video content for different language audiences without manual voiceover recording.
  • Automating dubbing workflows for marketing videos, tutorials, or entertainment content.
  • Quickly generating multilingual versions of existing media hosted on platforms like YouTube or Google Drive.

Example use case: A content creator wants to dub a YouTube tutorial originally in English into Spanish and French. They provide the video URL, select English as the source language, choose Spanish and French as target languages, and the node processes and returns the dubbed videos ready for distribution.

Properties

Name Meaning
Video URL Link to the media file to be dubbed. Supports YouTube, Google Drive, or direct media URLs.
Source Language The original spoken language in the provided media. Can be selected from a searchable list or by ID.
Target Languages One or more languages into which the content should be dubbed. Selectable from a searchable list or by ID.
Additional Options Optional settings to control polling behavior during dubbing processing:
- Polling Interval (Seconds) Time interval between status checks while waiting for dubbing to complete (default 10 seconds).
- Polling Timeout (Seconds) Maximum time to wait for dubbing completion before timing out (default 600 seconds).

Output

The node outputs JSON data representing the result of the dubbing process. This typically includes metadata about the dubbed media files, such as URLs to the dubbed video/audio assets, status information, and possibly language details.

If the node supports binary data output (not explicitly shown in the code snippet), it would represent the actual dubbed media files (audio/video) in binary form for further processing or download.

Dependencies

  • Requires an active CambAI API key credential configured in n8n to authenticate requests.
  • Depends on external CambAI API endpoints at https://client.camb.ai/apis.
  • Network access to the provided media URLs (YouTube, Google Drive, or direct links) must be available.
  • The node uses internal methods to list supported source and target languages dynamically via API calls.

Troubleshooting

  • Common issues:

    • Invalid or inaccessible video URLs may cause failures in media retrieval.
    • Incorrect source or target language selections can lead to errors or unexpected results.
    • Network connectivity problems or API authentication failures will prevent successful dubbing.
    • Polling timeout may occur if dubbing takes longer than the specified maximum wait time.
  • Error messages and resolutions:

    • Authentication errors: Verify that the API key credential is correctly set up and has necessary permissions.
    • Media not found or unsupported format: Check the validity and accessibility of the video URL.
    • Timeout errors: Increase the polling timeout value in additional options to allow more processing time.
    • Language not supported: Use the node’s language listing features to confirm valid source and target languages.

Links and References

  • CambAI official website and API documentation (not provided in code, but recommended to consult).
  • n8n documentation on creating and using custom nodes with API integrations.
  • YouTube and Google Drive API guidelines for media access permissions.

Discussion