Discussions
talkRate and voiceEmotion settings don't affect Interactive Avatar
14 days ago by Olivier
Hi,
I am developing a NextJs application based on:
https://github.com/HeyGen-Official/InteractiveAvatarNextJSDemo
Using different "rate" options and "voiceEmotion" settings don't seem to have any effect when interacting with the Interactive Avatar.
I've tried with both a custom made Avatar and the Preset "Ann_Therapist_public".
I am setting these values in the SDK call to createStartAvatar
:
const res = await avatar.current.createStartAvatar({
quality: avatarQuality,
avatarName: avatarId,
knowledgeId: knowledgeId,
voice: {
rate: talkRate,
emotion: voiceEmotion,
},
language: language,
disableIdleTimeout: true,
useSilencePrompt: useSilentPrompt,
});
where talkRate
is a value between 0.5 and 1.5 and voiceEmotion
is taken from the 'VoiceEmotion' enum in the SDK.