Discussions
Implementing Response Interruption in Interactive Avatar
I am working on a project using the Create a Vite Project with Streaming SDK demo for an interactive avatar that responds to user queries. The avatar continues to respond to the previous query even when a new one arrives. I want to implement a feature that interrupts the ongoing response whenever a new query is sent, allowing the avatar to immediately respond to the new request.
I've added several features to the base project, including voice interaction, avatar customization, a modified design, and a loading screen that appears when initiating the chat. Additionally, I've implemented two inactivity dialogues, with the final one showing a 20-second countdown before closing the chat.
Despite these enhancements, I haven't been able to successfully interrupt ongoing responses when a new query is received. Could anyone guide me on how to implement this functionality? Any advice or shared experiences would be greatly appreciated. I’m attaching the SDK link for reference.
https://docs.heygen.com/docs/creating-a-vite-project-with-streaming-sdk
Thank you in advance!