lipsync-engine
Zero-dependency, renderer-agnostic streaming lip-sync engine for browser-based 2D animation. Real-time viseme detection via AudioWorklet + Web Audio API.
File Explorer
Download Latest Version (.zip)- avatar.png
- demo.gif
- index.html
- realtime.html
- FrequencyAnalyzer.js
- LipSyncEngine.js
- visemes.js
- CanvasRenderer.js
- CSSClassRenderer.js
- SVGMouthRenderer.js
- audio-utils.js
- EventEmitter.js
- RingBuffer.js
- streaming-processor.js
- index.js
- types.d.ts
- .gitignore
- CLAUDE.md
- LICENSE
- package-lock.json
- package.json
- README.md
- server.js
- vite.config.js
# Installation Guide
1. Get the code
git clone https://github.com/Amoner/lipsync-engine
Downloads the entire project code from GitHub to your computer.
cd lipsync-engine
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install @beer-digital/lipsync-engine
Downloads and installs the libraries listed in package.json.
npm install
Downloads and installs the libraries listed in package.json.
npm run dev
Starts the development/run server.
OPENAI_API_KEY=sk-... npm run demo:realtime
Type this command into your terminal and run it.
npm run dev # Interactive demo
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
