
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A powerful library for processing audio files and generating mouth shapes for lip-sync animations.

1.0.5
Note: This version doesn't work as expected. we are facing an accuracy problem and are working on it.
lipsync-js is a powerful library for processing WAV audio files and generating mouth shapes for lip-sync animations. It uses Fast Fourier Transform (FFT) and Short-Time Fourier Transform (STFT) to analyze the audio data and map it to predefined mouth shapes, enabling realistic lip-syncing for animated characters.
Install the library using npm:
npm install lipsync-js
Usage Example Usage
import processAudioFile from "lipsync-js";
// Accepts only WAV files
async function handleAudioFile(buffer) {
try {
// Call the processAudioFile with the WAV buffer
// and it will return the mouthCues
const mouthCues = await processAudioFile(buffer);
console.log(mouthCues);
} catch (err) {
console.error("Error processing audio file:", err);
}
}
The processAudioFile function returns an array of mouth cues with start and end times, and the corresponding mouth shape. This can be used to animate 3D avatars on the web.
Example Output:
[
{ start: "0.00", end: "0.05", value: "closed mouth" },
{ start: "0.05", end: "0.27", value: "open mouth" },
{ start: "0.27", end: "0.31", value: "idle position" },
{ start: "0.31", end: "0.43", value: "idle position" },
{ start: "0.43", end: "0.47", value: "idle position" },
];

lipsync-js is a community project open to the public. Contributions, feedback, and participation are welcome and encouraged. Together, we can improve and expand the capabilities of this library to benefit everyone.
© 2024 lipsync-js contributors. This project is licensed under the MIT License.
Feel free to let me know if you need any further changes!
FAQs
A powerful library for processing audio files and generating mouth shapes for lip-sync animations.
The npm package lipsync-js receives a total of 21 weekly downloads. As such, lipsync-js popularity was classified as not popular.
We found that lipsync-js demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.