HeyGen icon

HeyGen

Consume HeyGen API

Video → Create WebM Video

AI-generated

Overview

This node operation creates a WebM video using the HeyGen API. It allows users to generate a video featuring an avatar with customizable pose, style, and input method (text or audio). The avatar can speak the provided text or use the provided audio file. Users can also specify video dimensions for the output video.

Use Case Examples

  1. Creating a WebM video where an avatar speaks a given text with a specific voice and emotion.
  2. Generating a WebM video using an audio file as input for the avatar's speech.
  3. Customizing the avatar's pose and style in the generated WebM video.

Properties

Name Meaning
Avatar Pose ID The ID of the avatar's pose used in the video.
Avatar Style The style of the avatar in the video.
Input Method Method to provide input for the avatar's speech, either text or audio.
Input Text The text that the avatar will speak in the video (used if input method is text).
Voice ID The ID of the voice that the avatar will use for text-to-speech.
Voice Locale Voice accents or locales for multilingual voices.
Emotion Adds emotion to the voice if supported (e.g., Excited, Friendly, Serious).
Input Audio URL of the input audio file (used if input method is audio).
Video Dimensions The dimensions (width and height in pixels) of the output video.

Output

JSON

  • id - The ID of the created WebM video.
  • status - The status of the video creation process.
  • url - The URL where the created WebM video can be accessed.

Dependencies

  • HeyGen API with an API key credential

Troubleshooting

  • Ensure that the avatarPoseId and avatarStyle parameters are correctly set to valid values supported by the HeyGen API.
  • If using text input, verify that the voiceId is valid and that the inputText is properly provided.
  • For audio input, ensure the inputAudio URL is accessible and points to a valid audio file.
  • Check the video dimensions to make sure they are within acceptable ranges supported by the API.
  • Common errors may include invalid parameter values or network issues when calling the HeyGen API. Verify API credentials and network connectivity.

Links

Discussion