Loading...
Loading...
通过inference.sh CLI创建AI虚拟形象(AI avatar)和会说话的头部视频。推荐使用:P-Video-Avatar(速度最快、成本最低,内置TTS)。其他可选模型:OmniHuman、Fabric、PixVerse。功能特性:音频驱动虚拟形象、文本生成虚拟形象、唇形同步视频、会说话头部生成、虚拟主持人。适用场景:AI主持人、讲解视频、虚拟网红、配音、营销视频。相关关键词:ai avatar、talking head、lipsync、avatar video、virtual presenter、ai spokesperson、audio driven video、heygen alternative、synthesia alternative、talking avatar、lip sync、video avatar、ai presenter、digital human
npx skill4agent add inference-skills/skills ai-avatar-video
需要安装inference.sh CLI()。安装说明belt
belt login
# 推荐使用:P-Video-Avatar(速度最快、成本最低,内置TTS)
belt app run pruna/p-video-avatar --input '{
"image": "https://portrait.jpg",
"voice_script": "Hello, welcome to our product demo!",
"voice": "Zephyr (Female)"
}'| 模型 | 应用ID | 最佳适用场景 | 内置TTS |
|---|---|---|---|
| P-Video-Avatar | | 综合最佳:速度、成本、质量、可控性 | 是(30种音色,10种语言) |
| OmniHuman 1.5 | | 多角色、音频驱动 | 否 |
| Fabric 1.0 | | 图片唇形同步说话 | 是 |
| PixVerse Lipsync | | 高逼真度唇形同步 | 否 |
| 模型 | 速度(每生成1秒视频耗时) | 每秒成本 |
|---|---|---|
| P-Video-Avatar | ~1.83s/s | $0.025 |
| OmniHuman 1.5 | ~28s/s(慢15倍) | $0.16(贵6.4倍) |
| Fabric 1.0 | ~34s/s(慢18倍) | $0.14(贵5.6倍) |
belt app run pruna/p-video-avatar --input '{
"image": "https://portrait.jpg",
"voice_script": "Welcome to our product walkthrough. Today I will show you three key features.",
"voice": "Puck (Male)",
"voice_language": "English (US)",
"resolution": "720p"
}'belt app run pruna/p-video-avatar --input '{
"image": "https://portrait.jpg",
"voice_script": "This is exciting news!",
"voice": "Aoede (Female)",
"voice_prompt": "Enthusiastic and energetic tone",
"video_prompt": "The person is presenting on stage with dramatic lighting",
"resolution": "1080p"
}'belt app run pruna/p-video-avatar --input '{
"image": "https://portrait.jpg",
"audio": "https://speech.mp3"
}'# 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": "Hi there! Let me walk you through our latest features.",
"voice": "Zephyr (Female)"
}'belt app run bytedance/omnihuman-1-5 --input '{
"image_url": "https://portrait.jpg",
"audio_url": "https://speech.mp3"
}'belt app run falai/fabric-1-0 --input '{
"image_url": "https://face.jpg",
"audio_url": "https://audio.mp3"
}'belt app run falai/pixverse-lipsync --input '{
"image_url": "https://portrait.jpg",
"audio_url": "https://speech.mp3"
}'# 1. 从文本生成语音
belt app run infsh/kokoro-tts --input '{
"prompt": "Welcome to our product demo. Today I will show you..."
}' > speech.json
# 2. 结合语音创建虚拟形象视频
belt app run bytedance/omnihuman-1-5 --input '{
"image_url": "https://presenter-photo.jpg",
"audio_url": "<audio-url-from-step-1>"
}'# 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>"
}'pruna/p-image9:16# 专属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-generationbelt app list --category video