ESC
开源 9 分钟阅读

Digital Human Koubo:一张照片生成AI数字人口播视频

开源项目 Digital Human Koubo 可将一张照片和一段文字生成AI数字人口播视频,支持Renoise MCP生成、5种编辑风格和48个创作者级包装组件,并接入Claude Code / Codex / OpenClaw / WorkBuddy等Agent。

来源:GitHub

Digital Human Koubo 是一个开源项目。它可以将一张照片和一段文字生成AI数字人口播视频。项目提供Renoise MCP生成、5种编辑风格和48个创作者级包装组件。支持Claude Code / Codex / OpenClaw / WorkBuddy等Agent。演示视频中的数字人口播,没有真人。

nClaw / other agents** — zip the two folders and import them in the product’s Skills page, or copy them into its skills directory (see the product’s docs):

cd skills && zip -r ../digital-human-skills.zip digital-human-koubo finance-explainer && cd ..

3 · Connect Renoise MCP (AI video / image generation)

Create an account at renoise.ai first. Login is in the browser — you never paste an API key.

AgentHow
Claude Code/plugin marketplace add ArcoCodes/renoise-plugins-official then /plugin install renoise@renoise-plugins-official
Codexcodex mcp add renoise --url https://renoise.ai/api/public/mcp then codex mcp login renoise
OpenClawopenclaw plugins install renoise --marketplace ArcoCodes/renoise-plugins-official
Claude desktop / claude.aiSettings → Connectors → Add custom connector → name Renoise, URL https://renoise.ai/api/public/mcp
WorkBuddy, Cursor, Windsurf, Cline, 豆包, 千问, 纳米Work, …add a remote MCP server with URL https://renoise.ai/api/public/mcp (typical config: {"mcpServers":{"renoise":{"url":"https://renoise.ai/api/public/mcp"}}})

Latest official instructions: renoise.ai/plugin. Check it worked by asking your agent: “查一下我的 Renoise 余额 / check my Renoise balance.”

4 · Local tools (for downloading, QA and editing)

ToolmacOSWindowsLinux
ffmpegbrew install ffmpegwinget install Gyan.FFmpegsudo apt install ffmpeg
Python 3 + numpy + Pillowbrew install python then python3 -m pip install numpy pillowwinget install Python.Python.3.12sudo apt install python3-pip
Node.js 18+ (Remotion)brew install nodewinget install OpenJS.NodeJS.LTSnvm install --lts
whisper.cpp (whisper-cli)brew install whisper-cppReleasesbuild from source
whisper modelggml-medium-q5_0.bin → ~/models/ (or export WHISPER_MODEL=/path/to/model.bin)samesame

One-command check — it skips what you have and lists install options for what’s missing:

bash ~/.claude/skills/digital-human-koubo/scripts/doctor.sh

The text-behind-presenter effect uses Apple Vision and needs macOS; everything else is cross-platform.

5 · Sound effects & placeholder music

The repo ships no third-party audio. Generate an original set of 30 sound effects and a placeholder background track (pure code, no copyright):

python3 ~/.claude/skills/digital-human-koubo/scripts/make_assets.py

new_edit.sh also runs this automatically for every new project. For a better soundtrack, drop any track you have the rights to at <project>/public/music/bgm.mp3.

6 · (Optional) Xiaomi MiMo TTS — designed or cloned voices

The default voice is Grok’s native voice (best lip-sync). For a designed voice, your own cloned voice, or narration-only videos, the skill uses Xiaomi MiMo TTS:

  1. Register at platform.xiaomimimo.com and create an API key. At the time of writing Xiaomi offered the TTS models free for a limited time — check the site for current pricing.
  2. Put the key in an environment variable, or in ~/.config/ai-teardown/mimo.env:
    mkdir -p ~/.config/ai-teardown && cat > ~/.config/ai-teardown/mimo.env <<'EOF'
    MIMO_API_KEY=your-key-here
    MIMO_BASE_URL=https://api.xiaomimimo.com/v1
    EOF
    chmod 600 ~/.config/ai-teardown/mimo.env
    
  3. Only clone your own voice or a voice you have explicit permission to use.

Note: Grok generates lip movement from its own voice. Swapping in a different voice afterwards leaves ~100 ms lip offset (fine in picture-in-picture, visible in full-screen close-ups). For your own recording with exact lip-sync, use an audio-driven model such as OmniHuman (documented in the skill).


Quick start

Talk to your agent in plain language:

用我的数字人 Skill 讲这段:……(paste your content)
Use my digital human skill to make a 30-second livestream ad: WorkBuddy course, 10 lessons, ¥99 (was ¥999).
Make a 3-minute explainer about why Silicon Valley Bank collapsed, Xiaolin-style.
Add a map route when she mentions these countries. / Put "¥99" behind her. / Add a teaser cold open.
把包装组件图鉴发我看看  (show me the packaging gallery)

What happens next:

  1. Setup check — anything already installed is skipped.
  2. A one-line diagnosis + 2 recommended styles with preview images, and one round of questions.
  3. Script + scene design + credit quote → you approve → segment 1 → you approve → the rest.
  4. QA, voice clean-up, editing with the style’s default packaging → the finished MP4.

Make your own digital human

  1. Pick a photo: frontal face, even light, hair off the face, mouth closed. Only your own photo or one you have permission to use.
  2. Ask the agent to generate a 4-view sheet (front, both sides, back) — GPT Image 2.5, 2k, ~23 credits — so the face stays the same from every angle.
  3. Compare models with the same image and line (Grok Video 1.5 vs Wan 3.0, 8 s each) and pick one.
  4. Upload the reference to Renoise and put its material:<id> into skills/digital-human-koubo/persona.json (renoise.reference_material, or other_hosts.me for a second presenter).

Details: references/new-avatar.md. The material: IDs in this repo belong to the author’s account and won’t work on yours — that’s expected.

Reference photo → composited livestream studio


Five editing styles

The five editing styles

StyleRatioLengthBest forTemplate
A Finance / tech explainer (Xiaolin-style structure)16:93–20 minevents, data, “why…”finance-explainer engine
B Influencer talking head with animated captions9:1630–120 sproduct picks, sales, opinionstemplates/huazi-916 (data-driven)
C Launch breakdown16:930–90 snew products / modelstemplates/reference/launch-169
D Step-by-step tutorial16:93–8 min“how to…”, tool setuptemplates/reference/tutorial-169
E Multi-host · multi-language · multi-scene16:93–7 mincapability demos, going globaltemplates/reference/multihost-169

Style B has three caption intensities — restrained / standard / lively:

Caption intensity presets

Style A learns only the structure and editing grammar of popular explainer channels. It never uses a real creator’s face, voice, set or lines.


48 packaging components

We measured 25 videos frame by frame (shot detection, opening beats, on-screen text, sound) — full reports in references/research/.

Cuts per minute measured on 25 creator videos

Rules distilled from the research (packaging-playbook.md):

  • Cut count can be low, but stimulation can’t stop: in the first 30 s, something new every 3–5 s.
  • First 3 s: the claim or the action — no greeting, no logo.
  • A BGM bed under everything; sound effects only on events (1–3 per minute in Chinese talking-head channels); 0.6–1.0 s of silence right before a reveal.
  • For a single-camera digital human, the cheapest pacing is punch-in cuts on sentence boundaries (1.0× / 1.18× / 1.32×).

Packaging component gallery

GroupComponents
Opening / hooksTeaserColdOpen · ColdOpenFreeze · SearchTyping · NumberSpike · SlamText · WordStack · TornStrip · TextBehind
Evidence / dataEvidenceCard · DocFocus · SourceDoc · ZoomFocus · Counter · Odometer · GlassPanel · SpecCard · LineDraw · BarCompare · ReviewCards · ArchiveCards · MapRoute · CompareWipe · PaperCollage
Annotation / peopleHandDraw · CalloutPill · LeaderLabel · TypedNameTag · LowerThird · NamePlate · SourceTag · FreezeFrame
Rhythm / interactionPunchInHost · KeywordStack · RetentionCaption · TiltLine · Aside · Danmaku · ReactionPop · MemeWindow · PollPop · GlitchInterstitial · HostFloaters · ProgressChapters · ProgressTracker · ChapterCard · RecapBoard · Countdown · GhostWord

Every component is called by name in a pack list, with timings written as "segment:word" (e.g. "3:积分"), and adapts to 9:16 automatically:

"pack": [
  { "use": "NumberSpike", "at": "1:不到十块钱", "until": "1:end", "text": "¥9.9/节", "label": "一节课" },
  { "use": "Danmaku", "items": [{ "t": "真的假的?", "at": "1:" }, { "t": "AI 还能帮我干活?", "at": "1:教你", "hot": true }] },
  { "use": "TextBehind", "src": "main.mp4", "cutout": "main_cut_s4.webm", "cutoutFrom": 17.2, "at": "4:", "until": "4:end",
    "mode": "count", "lines": [{ "t": "¥99", "font": "en", "color": "#FFE14D", "size": 0.17 }], "count": { "from": 999, "to": 99, "prefix": "¥" } }
]

Reference: references/packaging.md. Validate before rendering: python3 scripts/check_edit.py <project>/src.

Text behind the presenter

Original → Vision matte → original + big text + cut-out presenter

python3 scripts/cutout_video.py public/main.mp4 public/main_cut_s4.webm --from 17.2 --to 22.4   # matte only the seconds you need

It works on medium shots with headroom. In a selfie close-up the person fills ~89 % of the frame and hides the text — the script warns above 60 %. Mark such segments "shot": "depth" and they are generated as medium shots.

Close-up (89%) hides the text, medium shot (57%) shows it


Cost reference (real runs)

VideoGenerationCredits
Livestream ad, 9:16, 27 s1 scene image + 5 Grok segments (720p)482
Tutorial Ep2, 16:9, 4:3632 segments (full 720p / PiP 480p) + demos~3,250
Tutorial Ep3, 16:9, 5:5430 new segments + 7 scene images, 17 segments reused~3,409

Prices at the time of writing: Grok Video 1.5 — 720p 17 credits/s, 480p 10 credits/s; GPT Image 2.5 2k — 23 credits. Always confirm with the agent’s live quote.

Repository structure

skills/
  digital-human-koubo/            main skill
    SKILL.md                      workflow the agent follows
    persona.json                  presenters, voice descriptions, prompt templates
    references/                   style menu · packaging · playbook · install · research reports
    scripts/                      build_tasks · rangedl · assemble · align · check_edit · cutout_video
                                  voicefx/unify · doctor · new_edit · make_assets
    templates/
      huazi-916/                  9:16 data-driven talking-head template (edit.json)
      packaging/                  48-component kit + gallery project
      reference/                  launch-169 · tutorial-169 · multihost-169
    assets/                       style previews · packaging gallery · avatar reference
  finance-explainer/              Style A engine (episode.json beat sheet, research helpers)
docs/                             README images, GIF previews, posters

Known pitfalls (all handled by the skill)

  • Grok occasionally burns subtitles into landscape clips even when told not to → frame check + re-shoot that segment.
  • whisper writes Chinese numbers as digits (九百九十九 → 999), so accuracy drops but the line is correct → listen before re-shooting.
  • Renoise’s US CDN can truncate parallel downloads → rangedl.py downloads in 6 ranges with resume + decode check.
  • Grok 9:16 720p is 720×1280 — never stretch it to another ratio.
  • Expo easing never quite reaches the target (99.9 → rounds to 100) → counters snap to the exact value at the end.
  • Always mute the presenter video track; doubled audio a few ms apart sounds harsh (comb filtering).

Responsible use

  • Use only your own face/voice or ones you have explicit permission to use. Never impersonate a real person or creator.
  • Every video carries an “AI digital human” label; scene and animal clips are marked “AI generated”.
  • No made-up numbers, prices, offers or reviews — sample data on screen must be labelled as such.
  • Don’t use web memes, film/TV stills or celebrity images — the meme components use original stickers generated from your own presenter.
  • Credits are spent only after you approve the quote.

License & third-party

  • Code and docs: MIT © 2026 Berryxia (andyhuo520).
  • Remotion is used for rendering and has its own license: free for individuals and companies of up to 3 people; larger companies need a company license.
  • Animated emoji: Google Noto Emoji Animation (CC BY 4.0) — credit “Animated emoji: Google Noto” in your videos.
  • Maps: world-atlas (ISC; data from Natural Earth, public domain) · d3-geo, topojson-client (ISC). For maps involving China’s borders in formally published content, check against applicable local standards.
  • Speech recognition: whisper.cpp (MIT). Generation runs on Renoise (your account, your credits); optional TTS by Xiaomi MiMo.
  • Course screenshots in the WorkBuddy demo come from the author’s own course. Demo videos are the author’s own work; please don’t re-upload them as your own.

See THIRD_PARTY.md for details.


Made by Berryxia · built with Claude Code · if this helped, a ⭐ helps others find it.