heygen
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHeyGen 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 | bashOr 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
undefinedFirst, ensure canifi-env is installed:
首先,确保已安装canifi-env:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set HEYGEN_EMAIL "your-email@example.com"
canifi-env set HEYGEN_PASSWORD "your-password"
undefinedcanifi-env set HEYGEN_EMAIL "your-email@example.com"
canifi-env set HEYGEN_PASSWORD "your-password"
undefinedPrivacy & 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:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
- 使用CDP模式完成浏览器自动化设置
- 在Playwright控制的Chrome窗口中手动登录该服务
- 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
认证流程
- Navigate to heygen.com via Playwright MCP
- Click "Login" and enter email
- Enter password
- Handle Google SSO if configured
- Complete 2FA if required (via iMessage)
- 通过Playwright MCP导航至heygen.com
- 点击“登录”并输入邮箱
- 输入密码
- 若已配置,处理Google单点登录(SSO)
- 若需要,完成双因素认证(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:
- Document new avatars and voices
- Update translation capabilities
- Track feature additions
- Log new template options
当HeyGen更新时:
- 记录新的数字人和语音选项
- 更新翻译功能相关信息
- 追踪新增功能
- 记录新的模板选项
Notes
注意事项
- Credit-based video generation
- 100+ avatars available
- Video translation feature
- Custom avatar creation
- API available for integration
- 视频生成基于付费额度
- 提供100+数字人形象
- 支持视频翻译功能
- 可创建自定义数字人
- 提供API用于集成