安裝 belt CLI 技能:
npx skills add belt-sh/cli
AI 虛擬角色與說話頭影片
透過 inference.sh CLI 建立 AI 虛擬角色與說話頭影片。

快速入門
需要 inference.sh CLI(
belt)。安裝說明
belt login
# 推薦:P-Video-Avatar(最快、最便宜、內建 TTS)
belt app run pruna/p-video-avatar --input '{
"image": "https://portrait.jpg",
"voice_script": "您好,歡迎來到我們的產品示範!",
"voice": "Zephyr (Female)"
}'
可用模型
從 P-Video-Avatar 開始 — 它比替代方案快 18 倍且便宜 6 倍,內建 TTS、動態背景並支援 1080p。
| 模型 | 應用 ID | 最佳用途 | 內建 TTS |
|---|---|---|---|
| P-Video-Avatar | pruna/p-video-avatar | 最佳整體表現:速度、成本、品質、控制 | 是(30 種聲音、10 種語言) |
| OmniHuman 1.5 | bytedance/omnihuman-1-5 | 多角色、音訊驅動 | 否 |
| Fabric 1.0 | falai/fabric-1-0 | 圖片說話搭配唇形同步 | 是 |
| PixVerse Lipsync | falai/pixverse-lipsync | 高度擬真唇形同步 | 否 |
成本與速度比較
| 模型 | 速度(每秒影片) | 每秒成本 |
|---|---|---|
| P-Video-Avatar | ~1.83 秒/秒 | $0.025 |
| OmniHuman 1.5 | ~28 秒/秒(慢 15 倍) | $0.16(貴 6.4 倍) |
| Fabric 1.0 | ~34 秒/秒(慢 18 倍) | $0.14(貴 5.6 倍) |
範例
P-Video-Avatar(推薦)
從肖像照 + 文字腳本搭配內建 TTS 生成虛擬角色:
belt app run pruna/p-video-avatar --input '{
"image": "https://portrait.jpg",
"voice_script": "歡迎來到我們的產品導覽。今天我將為您展示三個關鍵功能。",
"voice": "Puck (Male)",
"voice_language": "English (US)",
"resolution": "720p"
}'
搭配自訂風格控制:
belt app run pruna/p-video-avatar --input '{
"image": "https://portrait.jpg",
"voice_script": "這真是振奮人心的消息!",
"voice": "Aoede (Female)",
"voice_prompt": "Enthusiastic and energetic tone",
"video_prompt": "The person is presenting on stage with dramatic lighting",
"resolution": "1080p"
}'
使用音訊檔案代替 TTS:
belt app run pruna/p-video-avatar --input '{
"image": "https://portrait.jpg",
"audio": "https://speech.mp3"
}'
完整工作流程:生成肖像照 + 虛擬角色
使用 Pruna P-Image 生成肖像照,再建立虛擬角色:
# 1. 生成肖像照
belt app run pruna/p-image --input '{
"prompt": "professional headshot portrait of a young woman, neutral background, looking at camera, studio lighting, photorealistic",
"aspect_ratio": "9:16"
}'
# 2. 使用內建 TTS 建立虛擬角色影片
belt app run pruna/p-video-avatar --input '{
"image": "<image-url-from-step-1>",
"voice_script": "您好!讓我為您介紹我們的最新功能。",
"voice": "Zephyr (Female)"
}'
OmniHuman 1.5(多角色)
belt app run bytedance/omnihuman-1-5 --input '{
"image_url": "https://portrait.jpg",
"audio_url": "https://speech.mp3"
}'
支援在多人圖片中指定驅動哪個角色。
Fabric 1.0(圖片說話)
belt app run falai/fabric-1-0 --input '{
"image_url": "https://face.jpg",
"audio_url": "https://audio.mp3"
}'
PixVerse Lipsync
belt app run falai/pixverse-lipsync --input '{
"image_url": "https://portrait.jpg",
"audio_url": "https://speech.mp3"
}'
完整工作流程:TTS + 虛擬角色(非 TTS 模型)
對於沒有內建 TTS 的模型(OmniHuman、PixVerse),請先產生語音:
# 1. 產生語音 — Inworld TTS-2 用於富有表現力的角色聲音
belt app run inworld/text-to-speech-2 --input '{
"text": "[friendly] Welcome to our product demo! [excited] Let me show you three features that will change how you work.",
"voice_id": "Sarah",
"delivery_mode": "CREATIVE"
}' > speech.json
# 2. 使用語音建立虛擬角色影片
belt app run bytedance/omnihuman-1-5 --input '{
"image_url": "https://presenter-photo.jpg",
"audio_url": "<audio-url-from-step-1>"
}'
提示:對於大多數使用案例,具有內建 TTS 的 P-Video-Avatar 更簡單 — 無需單獨的音訊步驟。僅在您特別需要 OmniHuman(多角色)或 PixVerse(高度擬真唇形同步)時,才使用此工作流程。
完整工作流程:為影片添加另一種語言配音
# 1. 轉寫原始影片
belt app run infsh/fast-whisper-large-v3 --input '{"audio_url": "https://video.mp4"}' > transcript.json
# 2. 翻譯文字(手動或使用 LLM)
# 3. 以新語言產生語音
belt app run infsh/kokoro-tts --input '{"text": "<translated-text>"}' > new_speech.json
# 4. 將原始影片與新音訊進行唇形同步
belt app run infsh/latentsync-1-6 --input '{
"video_url": "https://original-video.mp4",
"audio_url": "<new-audio-url>"
}'
虛擬角色 UGC 生成
使用 P-Video-Avatar 建立 UGC 風格的內容 — 內建 TTS,無需單獨的音訊步驟:
# 1. 生成一張具有親和力的 UGC 風格肖像照
belt app run pruna/p-image --input '{
"prompt": "casual selfie-style photo of a young woman in a cozy room, natural lighting, looking at camera, warm smile, authentic feel",
"aspect_ratio": "9:16"
}'
# 2. 使用內建 TTS 建立 UGC 虛擬角色影片
belt app run pruna/p-video-avatar --input '{
"image": "<image-url-from-step-1>",
"voice_script": "Okay so I just tried this product and honestly? It is a game changer. I was not expecting to love it this much but here we are!",
"voice": "Zephyr (Female)",
"voice_prompt": "Excited, casual, authentic tone like talking to a friend",
"video_prompt": "The person is talking casually to camera in their room, natural gestures",
"resolution": "1080p"
}'
為什麼 P-Video-Avatar 適用於 UGC
- 一體化 — 內建 TTS,無需單獨的音訊生成步驟
- 30 種聲音、10 種語言 — 貼合您的目標受眾
- 語音 + 影片提示 — 獨立控制語調、情緒、肢體語言和背景
- 快 18 倍、便宜 6 倍 — 相較於 Fabric/OmniHuman/HeyGen,可大規模產出 UGC
- 支援 1080p — 單張肖像照即可生成可供平台使用的直式影片
批次 UGC:相同產品,不同主持人
# 生成 3 位不同的主持人
for voice in "Zephyr (Female)" "Puck (Male)" "Aoede (Female)"; do
belt app run pruna/p-video-avatar --input "{
\"image\": \"https://portrait.jpg\",
\"voice_script\": \"This changed my morning routine completely. Five minutes and I am done.\",
\"voice\": \"$voice\",
\"voice_prompt\": \"Casual, authentic, like a real testimonial\",
\"video_prompt\": \"Person talking to camera in a bright kitchen\",
\"resolution\": \"1080p\"
}"
done
使用案例
- UGC 與行銷:產品示範、使用 AI 主持人的 UGC 風格廣告
- 教育:課程影片、解說
- 本地化:使用一張圖片為 10 種語言的內容進行配音
- 社群媒體:持續的虛擬網紅內容
- 企業:培訓影片、公告
- 遊戲:角色化身、NPC 對話
提示
- 使用高品質的肖像照(正面、光線良好)
- 音訊應清晰且背景噪音最小化
- P-Video-Avatar 支援內建 TTS — 無需單獨的語音生成步驟
- P-Video-Avatar 的輸出寬高比與輸入圖片相符
- 使用
pruna/p-image搭配9:16寬高比生成直式影片的肖像照 - OmniHuman 1.5 支援單張圖片中的多個人
- LatentSync 最適合將現有影片與新音訊同步
相關技能
# 專屬 P-Video-Avatar 技能
npx skills add inference-sh/skills@p-video-avatar
# 完整平台技能(250+ 應用)
npx skills add inference-sh/skills@infsh-cli
# 文字轉語音(為非 TTS 虛擬角色模型產生音訊)
npx skills add inference-sh/skills@text-to-speech
# 語音轉文字(為配音進行轉寫)
npx skills add inference-sh/skills@speech-to-text
# 影片生成
npx skills add inference-sh/skills@ai-video-generation
# 圖片生成(建立虛擬角色圖片)
npx skills add inference-sh/skills@ai-image-generation
瀏覽所有影片應用:belt app store --category video