Compare commits

..

1 Commits

Author SHA1 Message Date
raojianb
2855b9d9c5 feat: add language and voice rate 2024-09-23 15:54:42 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ export default function InteractiveAvatar() {
const res = await avatar.current.createStartAvatar({
quality: AvatarQuality.Low,
avatarName: avatarId,
knowledgeId: knowledgeId, // Or use a custom `knowledgeBase`.
knowledgeId: knowledgeId,
voice: {
rate: 1.5, // 0.5 ~ 1.5
emotion: VoiceEmotion.EXCITED,

View File

@@ -10,7 +10,7 @@
},
"dependencies": {
"@ai-sdk/openai": "^0.0.34",
"@heygen/streaming-avatar": "^2.0.3",
"@heygen/streaming-avatar": "^2.0.0-beta.1",
"@nextui-org/button": "2.0.34",
"@nextui-org/chip": "^2.0.32",
"@nextui-org/code": "2.0.29",