概要
Anime characters that feel alive, right in your browser. Chat or just talk out loud: each one answers in their own voice, moves while they speak and reacts with gestures and expressions.
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
Anima
Anime characters that feel alive, in your browser.
Chat with them or just talk out loud. They answer in their own voice,
move while they speak and react to what you say.
Live demo · Quick start · Voice mode · How it works · Roadmap
![]() |
![]() |
![]() |
| Mio Gentle, thoughtful, a little shy. Reads everything from poetry to field guides. |
Rin Cool, playful, a little mischievous. Teases you, and loves to be teased back. |
Kai Calm, easygoing, fond of naps. Slow mornings and quiet music. |
Quick start
Try it online at anima-io.vercel.app, or run it yourself with Python 3.12 and Node 20+.
# Backend
cd backend
python3.12 -m venv .venv
.venv/bin/python -m pip install -r requirements-dev.txt
cp .env.example .env
.venv/bin/python -m uvicorn app.main:app --port 8001
# Frontend, in a second terminal
cd frontend
npm install
npm run dev
Open http://localhost:4173, pick a character and say hi.
Keys
Keys are your own and stay in backend/.env. The browser never sees them.
In backend/.env |
Unlocks |
|---|---|
| nothing | Rooms, characters and motions, with scripted replies |
DEEPSEEK_API_KEY |
Real replies (deepseek-flash) |
OPENAI_API_KEY |
The gesture director (gpt-6-luna) |
ELEVENLABS_API_KEY |
Each character's voice in Chat |
ELEVENLABS_AGENT_ID |
Voice mode, see below |
Voice mode
Voice mode runs on an ElevenLabs voice agent. Give your ElevenLabs key the ElevenAgents read and write permissions, then create the agent once:
backend/.venv/bin/python scripts/setup_voice_agent.py
Add the ELEVENLABS_AGENT_ID it prints to backend/.env and restart the backend. In a room, choose Voice, press the microphone and talk. The character answers in your language in under a second, and you can cut in at any time. Press the microphone again to stop.
One agent serves every character: each session sends the character's prompt and the same voice it has in Chat. The backend only hands the browser a one-time token, and the audio goes over WebRTC between your browser and ElevenLabs. A session ends after a minute of silence, after ten minutes at most, or when you leave the room or switch to Chat.
Voice mode is tested in desktop Chrome. Allow the microphone when the browser asks.
How it works
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#f6f1ea", "primaryBorderColor": "#2f5d48", "primaryTextColor": "#2b3330", "lineColor": "#8a9a90", "edgeLabelBackground": "#ffffff"}}}%%
flowchart LR
you([You])
chat["<b>Chat reply</b><br/>deepseek-flash"]
agent["<b>Voice agent</b><br/>ElevenLabs<br/>deepseek-v41-flash"]
voice["<b>Character voice</b><br/>Eleven v4 Turbo"]
director["<b>Director</b><br/>gpt-6-luna"]
char(("<b>Character</b><br/>voice · lip sync<br/>gesture · face"))
you -- type --> chat --> voice
you -- speak --> agent --> voice
chat -. each line .-> director
agent -. each line .-> director
voice --> char
director -- gesture + expression --> char
classDef accent fill:#2f5d48,stroke:#2f5d48,color:#ffffff
class char accent
The reply model only talks. The director (/api/direct) reads the conversation so far and picks a gesture (usually none) and an expression for each line: a wave, a nod, a head shake, a shrug, or talking with the hands while the character explains something. The body acts the same way in both modes.
The stage (frontend/src/stage/) renders the room with three.js and three-vrm from one fixed camera, framed for each screen size. Motion-capture idles, wave, shrug and explain motions are retargeted onto each VRM and blend softly into each other, with the feet kept on the floor, blinking, breathing and a slow shift of weight. Left alone, the characters idle and look at your pointer.
The backend (backend/app/) is a small FastAPI app for chat replies, streamed speech, voice session tokens and the director. Character personas live in backend/app/prompts/character_prompt.py.
Project layout
backend/ FastAPI: chat, speech, voice sessions, director
frontend/ React + Vite: intro, characters, rooms, /lab
public/models/ the three VRM characters
public/motions/ bundled motions
scripts/
setup_voice_agent.py creates or updates the ElevenLabs voice agent
compress_vrm.py shrinks a VRM without changing its look (needs numpy and Pillow)
Open http://localhost:4173/lab to check characters, motions and expressions, or drop a .vrm or .glb file onto the page to try it. Motions are listed in frontend/src/stage/catalog.ts and characters in frontend/src/characters/catalog.ts.
Development
cd frontend && npm test -- --run && npm run lint && npm run build
cd backend && .venv/bin/python -m pytest
Troubleshooting
- Voice is greyed out: set
ELEVENLABS_API_KEYandELEVENLABS_AGENT_IDinbackend/.envand restart the backend. - "Could not reach the Anima server": the backend is not running on port 8001.
- Microphone blocked: allow it in the browser's site settings, then press the microphone again.
Roadmap
- Three characters with their own personalities and voices
- A natural, bundled motion set
- Live voice, with body language directed separately from speech
- A hosted demo at anima-io.vercel.app
- Memory across visits
- More rooms and times of day
License
Code is MIT licensed. The characters are VRoid's freely licensed sample avatars. See ASSET_LICENSE.md for characters and motions and THIRD_PARTY_NOTICES.md for bundled libraries.
関連プロジェクトを探す
読み込み中…


