Compare commits

...

1 Commits

Author SHA1 Message Date
raojianb
21486d27c9 feat: upgrade the sdk to v2.0.8 2024-11-17 22:33:42 -08:00
2 changed files with 5 additions and 2 deletions

View File

@@ -97,11 +97,14 @@ export default function InteractiveAvatar() {
emotion: VoiceEmotion.EXCITED, emotion: VoiceEmotion.EXCITED,
}, },
language: language, language: language,
disableIdleTimeout: true,
}); });
setData(res); setData(res);
// default to voice mode // default to voice mode
await avatar.current?.startVoiceChat(); await avatar.current?.startVoiceChat({
useSilencePrompt: false
});
setChatMode("voice_mode"); setChatMode("voice_mode");
} catch (error) { } catch (error) {
console.error("Error starting avatar session:", error); console.error("Error starting avatar session:", error);

View File

@@ -10,7 +10,7 @@
}, },
"dependencies": { "dependencies": {
"@ai-sdk/openai": "^0.0.34", "@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/button": "2.0.34",
"@nextui-org/chip": "^2.0.32", "@nextui-org/chip": "^2.0.32",
"@nextui-org/code": "2.0.29", "@nextui-org/code": "2.0.29",