8000 GitHub - snolot/lipsyncjs: Attempt to create lipsync library for realtime use with three.js
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

snolot/lipsyncjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lipsyncjs

Attempt to create lipsync library for realtime use with three.js

How to use:

// Initialise library
const ls = lipsync();

// Then in update loop 
const update = time => {
	requestAnimationFrame(update);
	if(ls.isPlaying()){

		const bs = ls.getBlendShapes();
		if(bs){ 
			mesh.morphTargetInfluences[0] = bs["blendShapeLips"];
			mesh.morphTargetInfluences[1] = bs["blendShapeMouth"];
			mesh.morphTargetInfluences[2] = bs["blendShapeKiss"];
		}
	}

	renderer.render(scene, camera);
}

About

Attempt to create lipsync library for realtime use with three.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0