
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
rhubarb-lip-sync-wasm
Advanced tools
WebAssembly port of Rhubarb Lip Sync - an advanced lip sync tool that automatically creates mouth animation from audio files. Perfect for AI agents, virtual characters, and interactive applications. Optimized for web applications with TypeScript support.
A WebAssembly port of Rhubarb Lip Sync optimized for web applications. This package provides lip-sync functionality by analyzing audio files and generating mouth shapes for animation. Perfect for creating realistic mouth movements for AI agents, virtual characters, and interactive applications.
This project is a WebAssembly port of Rhubarb Lip Sync, originally created by Daniel S. Wolf. The original project is an amazing piece of software that provides high-quality lip sync from audio files.
All credit for the core lip sync technology and algorithms goes to Daniel S. Wolf and the contributors of the original project. This WebAssembly port aims to make this technology more accessible to web developers while maintaining the high quality of the original implementation.
This package is particularly useful for:
AI Agents and Virtual Characters
Interactive Applications
npm install rhubarb-lip-sync-wasm
# or
yarn add rhubarb-lip-sync-wasm
import { Rhubarb } from "rhubarb-lip-sync-wasm";
// Example usage with an AI agent's audio response
async function generateLipSync(pcmBuffer: Buffer<ArrayBuffer>) {
try {
const result = await Rhubarb.getLipSync(pcmBuffer, {
dialogText: "Optional dialog text for better recognition",
});
// result.mouthCues contains an array of mouth shapes with timings
console.log(result.mouthCues);
} catch (error) {
console.error("Error generating lip sync:", error);
}
}
Generates lip sync data from an audio file.
pcmBuffer
: Buffer - Raw PCM audio buffer (16KHz)options
: RhubarbOptions (optional)
dialogText
: string - Optional text to guide the recognition process. If provided, it helps PocketSphinx better recognize the speech. If not provided, PocketSphinx will perform recognition without text guidance.Promise containing:
mouthCues
: Array of mouth shapes with timings
start
: number - Start time in secondsend
: number - End time in secondsvalue
: string - Mouth shape value (A-H, X)This package requires Emscripten to be installed for building the WASM module. Make sure you have it installed before running the build commands.
# Install dependencies
yarn install
# Build the package
yarn build
This package uses WebAssembly to port the C++ implementation of Rhubarb Lip Sync to the web. The original Rhubarb Lip Sync uses PocketSphinx for speech recognition and advanced audio processing algorithms.
The WebAssembly port maintains these features while making them available in a JavaScript/TypeScript environment.
While this port aims to maintain feature parity with the original Rhubarb Lip Sync, there are some differences due to the web environment:
This project is licensed under the MIT License - see the LICENSE file for details.
The original Rhubarb Lip Sync is also licensed under the MIT License. See the original project for more details.
This project is a WebAssembly port of Rhubarb Lip Sync (https://github.com/DanielSWolf/rhubarb-lip-sync) Original work Copyright (c) Daniel S. Wolf
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
FAQs
WebAssembly port of Rhubarb Lip Sync - an advanced lip sync tool that automatically creates mouth animation from audio files. Perfect for AI agents, virtual characters, and interactive applications. Optimized for web applications with TypeScript support.
The npm package rhubarb-lip-sync-wasm receives a total of 15 weekly downloads. As such, rhubarb-lip-sync-wasm popularity was classified as not popular.
We found that rhubarb-lip-sync-wasm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.