feat: upgrade the sdk to v2.0.8 (#39)

This commit is contained in:
Joby
2024-11-17 22:38:11 -08:00
committed by GitHub
parent 431281d47c
commit 6fca8b4d42
2 changed files with 5 additions and 2 deletions

View File

@@ -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);