Discussions

Ask a Question
Back to All

Avatar should start conversation.

I need that the session starts with the Avatar talking. I always need to say "hello", and then the avatar starts

I've found in the discussion forum this approach:


await avatar.speak({
  text: "Hello",
  taskType: "repeat",
});

But I received that in this event:


avatar.on(StreamingEvents.USER_TALKING_MESSAGE, (message) => {
  if (message.detail.message != "Hello") {
  }
});

I expected to receive this "Hello" message in this event:


avatar.on(StreamingEvents.AVATAR_TALKING_MESSAGE, (message) => {
  if (message.detail.message != "Hello") {
  }
});

Any explanation would be appreciated.

Thanks in advance!