Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Dear Users,

Now, we are seeking users who can give us a hand with expertise to evolve our software more dynamically.
If you are willing to help us, we’d like you to make a registration for “Live2D Creators Circle” via the link below.
Designers, programmers, translators are especially welcomed so far.
(More detailed explanation will be given to you before we ask you to do tasks)

https://docs.google.com/forms/d/1G5KK_GL3ozwPXtTHrpi_ktbsI8UZf8jlYRSlDworyBo/viewform?usp=send_form

lipsinс

Sorry if this question has already been.
How do lipsinс?

Comments

  • @akiranime
    You can set the value of a parameter using 'live2DModel.setParamFloat()' passing in the ID of the parameter and the value you want to set. For lip-syncing, you'd need to set the value each frame.

    Below is how you could implement the parameter setting part:
    private float mouthOpen;	// Extracted from the volume of the voice audio, for example.
    
    private void update()
    {
    	...
    	...
    	
    	// Set the value for the parameter based on its ID.
    	live2DModel->setParamFloat("PARAM_MOUTH_OPEN_Y", mouthOpen);
    	
    	...
    	...
    	
    	live2DModel->update();
    	live2DModel->draw();
    }
Sign In or Register to comment.