Discussions
Interactive Avatar : Avatar not found
3 months ago by Baptiste
Hello,
I would like to create a streaming avatar based on the list of available avatars (https://api.heygen.com/v2/avatars), but when I select one, for example “Jake-insuit-20220721”, I get an answer to my request
{
"code": 10013,
"message": "avatar not found"
}
Here is the code for my request.
const response = await fetch('https://api.heygen.com/v1/streaming.new', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Api-Key': this.heygen_API.apiKey
},
body: JSON.stringify({
quality,
avatar_id: 'Jake-insuit-20220721',
voice: {
voice_id: 'feca19f2a24943b3898e8b87f1696edf'
}
})
})
I can get it to work with ID "Kristin_public_2_20240108" and "Tyler-insuit-20220721" but the others don't.
In the list of voices (https://api.heygen.com/v2/voices), for them to be compatible with avatar streaming, the “support_pause” property must be set to true?