met4citizen / TalkingHead

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

Dynamic change tts parameters? #45

Closed tanerdogan closed 5 months ago

tanerdogan commented 5 months ago

Hello, how can i change

ttsLang and ttsVoice parameters by click country flags? I tried // onclick event head.showAvatar({ ttsLang: langOptions[lang]['ttsLang'], ttsVoice: langOptions[lang]['ttsVoice'] .... //reload head.ShowAvatar()

but no luck... Also tried

// onclick event head.ttsLang = langOptions[lang]['ttsLang']; head.ttsVoice = langOptions[lang]['ttsVoice'];

Thanks...

tanerdogan commented 5 months ago

sorry fixed by async await....