Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

animaanima 音频

Agent Skill

anima 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

52,491

周安装

2,103

GitHub Stars

公开资料未说明

下载量

16,992
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:anima(anima 音频)
来源仓库:https://github.com/hmyaoyuan/anima
安装命令:
openclaw skills install anima
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install anima

简介

Anima Avatar - 交互式视频生成引擎。生成带有动态角色精灵(树条)、同步音频(鱼音频)和文本叠加的 16:9 视频。

SKILL.md

description
Anima Avatar - Interactive Video Generation Engine. Generates 16:9 videos with dynamic character sprites (Shutiao), synced audio (Fish Audio), and text overlay.

Anima Avatar (Project Anima)

Generates high-quality interactive videos where Shutiao speaks the text with appropriate expressions, gestures, and voice.

Capabilities

  • True Voice: Uses Fish Audio API for realistic speech synthesis.
  • Dynamic Sprites: Auto-selects from a library of 30+ sprites (Happy, Angry, Shy, Think, Action) based on emotion tags.
  • Smart Director: Handles parallel rendering, audio-sync, and video composition (FFmpeg).
  • Pro Delivery: Uploads as native stream to Feishu for direct playback (with correct duration).

Structure

  • src/director.js: The core engine. Generates frames (sharp + SVG), audio (Fish Audio), and video (FFmpeg).
  • src/send_video_pro.js: Delivery script. Handles transcoding, duration calculation, and Feishu upload.
  • src/batch_generator.js: Batch sprite generator. Uses Gemini image generation to produce sprite variants.
  • assets/sprites/: The sprite library (1920x1080 PNG files).
  • assets/production_plan.csv: The asset registry (25 sprites).
  • assets/manifest.json: Sprite metadata for reference.
  • output/: Generated videos.

IMPORTANT: Sprites Not Included

ClawHub only distributes text files. The sprite PNG images are not included in the published package.

After installing, follow the steps below in order to prepare your sprites before first use.

All image generation steps use Gemini API (Nano Banana) as the AI image generator. It works by "reference image + text prompt" — you give it an existing image and a text description of what to change, and it returns a new image with the changes applied. This is how both the base sprite (character + background fusion) and all expression variants are created.

Step 1: Prepare your character image

You need a standalone character illustration (transparent background PNG recommended).

  • This is your character's "identity" — it defines the look for all sprites.
  • Resolution: at least 1920x1080. Full-body is best.
  • Example: a full-body anime character PNG with transparent background.

Save it somewhere accessible (e.g. avatars/my_character.png).

Step 2: Prepare your background image

You need a background scene for the character to stand in.

  • This is the environment that appears behind the character in every video frame.
  • Resolution: at least 1920x1080.
  • Example: a cherry blossom garden, a classroom, a city street.

Save it at: assets/backgrounds/ (e.g. assets/backgrounds/cherry_blossom_bg.png).

Step 3: Fuse character + background into base sprite

This step uses Gemini (Nano Banana) image generation to merge your character onto the background. The AI sees both images and creates a natural-looking composite — this is NOT a simple overlay/paste, but an AI-generated fusion that handles lighting, shadows, and blending.

How to do it:

Method A: Use Gemini directly (recommended) Use any Gemini-compatible image generation tool (like Nano Banana, Google AI Studio, or the Gemini API) with:

  • Input image: Your background image
  • Reference/overlay: Your character image
  • Prompt: e.g. "Place this character naturally in the center of this background scene, full body visible, gentle smile"

Save the output as: assets/sprites/shutiao_base.png

Method B: Use the built-in compose script (simple overlay) If you just want a quick mechanical overlay (no AI blending), src/compose_base.js can paste your character onto the background using sharp:

  1. Edit src/compose_base.js — update BG_PATH and AVATAR_PATH to point to your files.
  2. Run: node src/compose_base.js
  3. Output: assets/sprites/shutiao_base.png

Note: Method B is a plain image composite. Method A (Gemini) produces much better results because it handles lighting and integration naturally.

Step 4: Plan your sprite variants

Now that you have a base sprite, plan what expression/pose variants you want.

Open assets/production_plan.csv and customize it:

ID,Emotion,Variant,Description,Filename,Prompt,Status
001,Base,v1,Standard,shutiao_base.png,gentle smile looking at viewer,Done
003,Happy,v1,Smile,shutiao_happy.png,big happy smile eyes closed,Pending
007,Angry,v1,Pout,shutiao_angry.png,angry face pouting,Pending
...

Column meanings:

  • Emotion: Category used by the video director to pick sprites (Happy, Angry, Shy, Think, Sad, Action, Base).
  • Filename: Output filename. Must follow shutiao_<emotion>_<variant>.png format.
  • Prompt: Describes how this variant differs from the base. The generator sends the base image + this prompt to Gemini, asking it to change only the expression/pose while keeping everything else the same.
  • Status: Pending = will be generated. Done = already exists, skip.

The default CSV has 25 entries. You can add, remove, or modify rows freely.

Step 5: Generate sprite variants

This step uses Gemini (Nano Banana) image generation again. For each Pending row, the batch generator sends your base sprite + the prompt to Gemini, asking: "Same image, change facial expression to [prompt]. Keep clothes and background exactly same."

  1. Set your Gemini API key in skills/anima/.env:
GEMINI_API_KEY=your_key_here
  1. Make sure assets/sprites/shutiao_base.png (or shutiao_base_1k.png) exists from Step 3.
  1. Run the batch generator:
node skills/anima/src/batch_generator.js

What happens:

  • Reads production_plan.csv
  • Finds all rows with Status=Pending
  • For each: sends the base sprite + prompt to Gemini API
  • Saves the generated image as a PNG in assets/sprites/
  • Updates the CSV row to Status=Done
  • Waits 10 seconds between generations (API rate limit cooldown)

Step 6: Verify

Check that assets/sprites/ now has a PNG file for every row in production_plan.csv:

ls assets/sprites/*.png | wc -l

Then do a quick test run:

node skills/anima/run.js --preview --script '[{"text":"Test","emotion":"Happy"}]'

Check the generated frame at temp/frame_0.png — you should see your character with the text overlay.

If a sprite is missing at runtime, the director will fall back to a white background with a warning in the console.

Setup & Requirements

1. System Dependencies

  • ffmpeg (required for video processing):

- macOS: brew install ffmpeg - Linux: sudo apt install ffmpeg - Windows: Download/Install FFmpeg and add to PATH.

2. Node Dependencies

Install inside the skill folder:

cd skills/anima
npm install

The only native dependency is sharp, which ships prebuilt binaries for all major platforms via N-API. It does not need recompilation when Node versions change — install once, run everywhere.

3. External Services (API Keys Required)

This skill depends on two external services. You need to provide your own API keys.

Fish Audio (TTS - Text to Speech)

  • What: Generates realistic voice audio from text.
  • Used by: src/director.js (the generateAudio() function).
  • Get a key: https://fish.audio/dashboard/api
  • Env vars needed:

- FISH_AUDIO_KEY — Your API key (starts with sk-... or a hex string). - FISH_AUDIO_REF_ID — The voice model reference ID. You can use Fish Audio's default models or clone your own voice.

Gemini API (Image Generation - Optional)

  • What: Generates sprite variants using Google Gemini image generation.
  • Used by: src/batch_generator.js (only needed if you want to create new sprite variants).
  • Self-contained: No external skills needed. batch_generator.js calls the Gemini API directly via curl.
  • Get a key: https://aistudio.google.com/apikey
  • Env var needed: GEMINI_API_KEY
  • Not needed for normal video generation — only for creating new character sprites.

Feishu / Lark (Delivery - Optional)

  • What: Uploads videos to Feishu as native media messages.
  • Used by: src/send_video_pro.js.
  • Env vars needed:

- FEISHU_APP_ID — Your Feishu app ID. - FEISHU_APP_SECRET — Your Feishu app secret.

  • Not needed if you only use --preview mode.

4. Environment Configuration

Create a .env file inside the skill folder (skills/anima/.env):

# Fish Audio (Required for TTS)
FISH_AUDIO_KEY=your_key_here
FISH_AUDIO_REF_ID=your_model_ref_id_here

# Gemini (Optional, for sprite generation)
GEMINI_API_KEY=your_key_here

# Feishu/Lark (Optional, for delivery)
FEISHU_APP_ID=cli_...
FEISHU_APP_SECRET=...

Important: The .env file is loaded from the skill folder first (least-privilege). Never commit .env files — the .clawignore already excludes it.

Usage

Generate & Send

# Basic usage (Demo script)
node skills/anima/run.js --target "ou_..."

# With custom script (JSON string)
node skills/anima/run.js --target "ou_..." --script '[{"text":"Hello World","emotion":"Happy"}]'

# With custom script (File)
node skills/anima/run.js --target "ou_..." --script "path/to/script.json"

# Preview only (No upload)
node skills/anima/run.js --script '[{"text":"Test","emotion":"Happy"}]' --preview

One-Liner (for agent use)

node skills/anima/run.js --target "<open_id>" --script '[{"text":"Hello","emotion":"Happy"}]'

Script Format

Each scene in the script is a JSON object:

[
  { "text": "Hello boss!", "emotion": "Happy" },
  { "text": "Let me think...", "emotion": "Think" },
  { "text": "I got it!", "emotion": "Action" }
]

Available emotions: Base, Happy, Angry, Shy, Think, Sad, Action.

Extension: Custom TTS

To use a different TTS provider (e.g., OpenAI, ElevenLabs):

  1. Open src/director.js.
  2. Locate the generateAudio(text, filename) function.
  3. Replace the Fish Audio API call with your provider's logic.
  4. Contract: The function must return: { path: "/path/to/audio.wav", duration: 1.5 } (duration in seconds).

Advanced: Adding More Sprite Variants

To add new expressions or poses after the initial setup:

  1. Add a new row to assets/production_plan.csv with Status=Pending.
  2. Write a clear prompt describing the change from the base (e.g. angry expression, arms crossed, looking away).
  3. Run node src/batch_generator.js — it will only process Pending rows.
  4. The new sprite will auto-register in the director's emotion pool via loadSprites().

See ASSETS_PLAN.md for the full production matrix and design philosophy.

Troubleshooting

  • Duration 00:00: Ensure send_video_pro.js calculates duration in ms and passes it to both upload and message payload.
  • Fish Audio 400: Check that your Ref ID matches the API Key owner's model.
  • Video Black: Check ffmpeg transcoding logs and verify source frame images in temp/frame_*.png.
  • SVG text not rendering: Ensure the system has CJK fonts installed (macOS has them by default; on Linux: sudo apt install fonts-noto-cjk).
  • No audio fallback: If FISH_AUDIO_KEY is missing, the skill falls back to macOS say command (English only).

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.67%
按下载量换算13,877

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills