Discussions

Ask a Question
Back to All

No conversation with demo avatar

Sorry for the double, but we could not answer inside the post.


We have carefully read through all the instructions in your documentation regarding the StreamingAvatarSDK and set up a server using the InteractiveAvatarNextJSDemo example. When we executed the setup, the interface displayed the option for an avatar, but only as an avatar that repeated what we input. In the interface, I was able to enter the Knowledge Base ID, Avatar ID and the Voice ID. There was no conversation taking place. Is this correct? Furthermore, we were unable to have a conversation but had to input the questions manually. Is that normal bahviour? We are a bit helpless and do not understand why we cannot have a conversation with the avatar.

about 15 hours ago by Gokce
Admin
It seems that in your setup, the taskType might be set to TaskType.REPEAT, which would cause the avatar to only repeat the input text. For conversation functionality, you need to set taskType to TaskType.TALK in your code.

JavaScript

avatar.speak({
text: "Hi there.",
taskType: TaskType.TALK, // Ensure this is set to TALK for conversation
});
Let me know if this resolves the issue.


Thank you! We changed it in components/InteractiveAvatar.tsx and now we the avatar is answering. But this happens only on text based input. When we switch to "Voice mode" the button "Voice chat" ist not active. Do you have any further ideas?

Kind regards