From 6fca8b4d42b906fe599eb5bccb39f452286bca0e Mon Sep 17 00:00:00 2001 From: Joby Date: Sun, 17 Nov 2024 22:38:11 -0800 Subject: [PATCH] feat: upgrade the sdk to v2.0.8 (#39) --- components/InteractiveAvatar.tsx | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/InteractiveAvatar.tsx b/components/InteractiveAvatar.tsx index 8e3d9db..57d914d 100644 --- a/components/InteractiveAvatar.tsx +++ b/components/InteractiveAvatar.tsx @@ -97,11 +97,14 @@ export default function InteractiveAvatar() { emotion: VoiceEmotion.EXCITED, }, language: language, + disableIdleTimeout: true, }); setData(res); // default to voice mode - await avatar.current?.startVoiceChat(); + await avatar.current?.startVoiceChat({ + useSilencePrompt: false + }); setChatMode("voice_mode"); } catch (error) { console.error("Error starting avatar session:", error); diff --git a/package.json b/package.json index 9086768..963b9de 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@ai-sdk/openai": "^0.0.34", - "@heygen/streaming-avatar": "^2.0.7", + "@heygen/streaming-avatar": "^2.0.8", "@nextui-org/button": "2.0.34", "@nextui-org/chip": "^2.0.32", "@nextui-org/code": "2.0.29",