Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the model do the lipsync? #157

Open
loydcose opened this issue Jul 14, 2024 · 1 comment
Open

How to make the model do the lipsync? #157

loydcose opened this issue Jul 14, 2024 · 1 comment

Comments

@loydcose
Copy link

Is it possible for a model to do lipsync?
I can't seem to find any lipsync contents on the documentation. Could you guys help me?

Here's my current code:

   const app = new Application({
        view: document.getElementById("canvas") as
          | HTMLCanvasElement
          | undefined,
        autoStart: true,
        resizeTo: window,
        backgroundAlpha: 0,
      })



      const model = await Live2DModel.from(sampleModel3, {
        autoInteract: false,
      })
      const scaleX = innerWidth / model.width
      const scaleY = innerHeight / model.height
      model.scale.set(Math.min(scaleX, scaleY))
      model.x = innerWidth / 2 - model.width / 2

      // can't access speak property, how do i lipsync the model?
      model.speak()

      app.stage.addChild(model)

Lib versions:
pixi-live2d-display: 0.4.0
pixi.js: 6.5.2

Thanks a lot!

@gaochunrong
Copy link

https://github.com/Live2D/CubismWebMotionSyncComponents 直接下载集成到live2d web sdk就可以正常显示?具体细节说一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants