heygen

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

HeyGen Skill

HeyGen Skill

Overview

概述

Enables Claude to use HeyGen for AI video generation including creating avatar videos, video translation, and managing video content projects.
让Claude能够借助HeyGen进行AI视频生成,包括创建数字人视频、视频翻译以及管理视频内容项目。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/heygen/install.sh | bash
Or manually:
bash
cp -r skills/heygen ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/heygen/install.sh | bash
或手动安装:
bash
cp -r skills/heygen ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set HEYGEN_EMAIL "your-email@example.com" canifi-env set HEYGEN_PASSWORD "your-password"
undefined
canifi-env set HEYGEN_EMAIL "your-email@example.com" canifi-env set HEYGEN_PASSWORD "your-password"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭据,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅能在你的本地机器上访问,绝不会被传输至外部。

Capabilities

功能特性

  • Create AI avatar videos
  • Translate videos to other languages
  • Manage video projects
  • Select from avatar library
  • Use video templates
  • Download generated content
  • 创建AI数字人视频
  • 将视频翻译为其他语言
  • 管理视频项目
  • 从数字人库中选择形象
  • 使用视频模板
  • 下载生成的内容

Usage Examples

使用示例

Example 1: Create Avatar Video

示例1:创建数字人视频

User: "Create a welcome video with an AI spokesperson"
Claude: I'll create your welcome video.
1. Opening HeyGen via Playwright MCP
2. Creating new video project
3. Selecting avatar
4. Entering welcome script
5. Generating video
用户:"创建一个带有AI发言人的欢迎视频"
Claude:我将为你创建欢迎视频。
1. 通过Playwright MCP打开HeyGen
2. 创建新的视频项目
3. 选择数字人形象
4. 输入欢迎脚本
5. 生成视频

Example 2: Translate Video

示例2:翻译视频

User: "Translate my video to Spanish"
Claude: I'll translate your video.
1. Uploading your video
2. Selecting Spanish as target
3. Initiating video translation
4. Downloading translated version
用户:"把我的视频翻译成西班牙语"
Claude:我将为你翻译视频。
1. 上传你的视频
2. 选择西班牙语作为目标语言
3. 启动视频翻译
4. 下载翻译后的版本

Example 3: Download Video

示例3:下载视频

User: "Download my completed HeyGen video"
Claude: I'll download your video.
1. Opening your project list
2. Finding the completed video
3. Accessing download options
4. Downloading in requested format
用户:"下载我已完成的HeyGen视频"
Claude:我将为你下载视频。
1. 打开你的项目列表
2. 找到已完成的视频
3. 进入下载选项
4. 按请求格式下载

Authentication Flow

认证流程

  1. Navigate to heygen.com via Playwright MCP
  2. Click "Login" and enter email
  3. Enter password
  4. Handle Google SSO if configured
  5. Complete 2FA if required (via iMessage)
  1. 通过Playwright MCP导航至heygen.com
  2. 点击“登录”并输入邮箱
  3. 输入密码
  4. 若已配置,处理Google单点登录(SSO)
  5. 若需要,完成双因素认证(2FA)(通过iMessage)

Error Handling

错误处理

  • Login Failed: Retry up to 3 times, notify via iMessage
  • Session Expired: Re-authenticate automatically
  • Rate Limited: Check credit balance
  • 2FA Required: Send iMessage notification
  • Generation Failed: Retry with adjusted settings
  • Translation Error: Check source video quality
  • 登录失败:最多重试3次,通过iMessage通知用户
  • 会话过期:自动重新认证
  • 请求受限:检查余额
  • 需要2FA:发送iMessage通知
  • 生成失败:调整设置后重试
  • 翻译错误:检查源视频质量

Self-Improvement Instructions

自我更新说明

When HeyGen updates:
  1. Document new avatars and voices
  2. Update translation capabilities
  3. Track feature additions
  4. Log new template options
当HeyGen更新时:
  1. 记录新的数字人和语音选项
  2. 更新翻译功能相关信息
  3. 追踪新增功能
  4. 记录新的模板选项

Notes

注意事项

  • Credit-based video generation
  • 100+ avatars available
  • Video translation feature
  • Custom avatar creation
  • API available for integration
  • 视频生成基于付费额度
  • 提供100+数字人形象
  • 支持视频翻译功能
  • 可创建自定义数字人
  • 提供API用于集成