UNPKG

rhubarb-lip-sync-wasm

Version:

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.

24 lines (23 loc) 823 B
import { RhubarbOptions, LipSyncResult } from "./types.js"; declare global { interface Window { RhubarbWasm: { getLipSync: (pcmData: Buffer<ArrayBuffer>, options?: RhubarbOptions) => Promise<LipSyncResult>; }; } } /** * Main Rhubarb class for lip sync generation */ export declare class Rhubarb { private static wasmModule; private static getModule; /** * Generate lip sync data from PCM audio data * @param pcmData Buffer containing 16-bit PCM audio data at 16kHz mono * @param options Optional parameters including dialog text * @returns Promise resolving to lip sync result with mouth cues */ static getLipSync(pcmData: Buffer<ArrayBuffer>, options?: RhubarbOptions): Promise<LipSyncResult>; } export type { RhubarbOptions, LipSyncResult };