Discussions
Streaming API
5 days ago by Fred NERET
Hello,
When I use the streaming API reference, I can make an avatar speaking.
If I want to change the avatar look and I try with avatar_id setting, nothing happens.
If I use avatarName, I can change successfully with all avatars available for streaming.
Now I want to change the voice using voice_id, but nothing happens like if it was a wrong parameter.
I need the avatar to speak french with a french accent, can you give the right settings for that, because I don't find it in the documentation. Everything I do, it always speaks french with a canadian accent.
My code:
this.sessionData = await this.avatar.createStartAvatar({
quality: "medium",
avatarName: "37f4d912aa564663a1cf8d63acd0e1ab",
voice: {
voice_id: "255f8e3f207d4cf58632f0ee48ea75ef", // Charline - Natural
rate: 1, // 0.5 ~ 1.5
},
video_encoding: "H264",
version: "v2"
});
voice setting:
{
"voice_id": "255f8e3f207d4cf58632f0ee48ea75ef",
"language": "French",
"gender": "Female",
"name": "Yvette - Warm",
"preview_audio": "https://static.heygen.ai/voice_preview/a300600fb4e240c081d76b7acadf5884.wav",
"support_pause": true,
"emotion_support": false,
"support_interactive_avatar": true
},
Please help because I can no longer move forward with my project.
Thanks
Fred