Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

If you have any questions, reports, suggestions, or requests about Live2D, please send them to this forum.
※We cannot guarantee statements or answers from Live2D staff. Thank you for your understanding in advance.
 
Live2D Cubism
Cubism Products and Downloads
Cubism product manuals and tutorials
Cubism Editor Manual    Cubism Editor Tutorial    Cubism SDK Manual    Cubism SDK Tutorial
[INFORMATION](4/11/2024)
Cubism Editor 5.1 alpha2 is now available!

We have incorporated some of your comments and suggestions. Thank you for your comments and requests!
We will continue to welcome your feedback on alpha2.

Download/ Manual and Update History
Options

lipsinс

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

Comments

  • Options
    @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.