met4citizen / TalkingHead

Talking Head (3D): A JavaScript class for real-time lip-sync using Ready Player Me full-body 3D avatars.
MIT License
346 stars 106 forks source link

Increase volume for openAI's tts and whisper integration #43

Closed anmol1905 closed 5 months ago

anmol1905 commented 5 months ago

Right now when I integrate open AI's TTS and Whisper for the visemes and call the startSpeaking function. The volume seems to be low. is there any configuration required in TalkingHead module or do I need to tweak it with other methods?

met4citizen commented 5 months ago

The TalkingHead class uses a gain node, and you can increase the volume with the setMixerGain method. The first parameter is for speech, and the second is for background audio (if any).

head.setMixerGain(10,0);
anmol1905 commented 5 months ago

Thank you!