feat: upgrade the sdk to v2.0.8
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user