Using a Custom AI Avatar on the sample code

It is VMS 130 Reputation points
2025-08-04T02:11:52.6033333+00:00

Hello

I am trying to create a Proof of Concept by using https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/browser/avatar I want to show a custom video of a person in an avatar with text generated with OpenAi. In other words, user asks a question and answer comes from an OpenAI call (with a prompt, etc.).

Initially, we can use any of the neural voices provided by Azure.

We have a custom avatar deployed as we managed to get access (yay!)

Our custom avatar end point is at https://westus2.tts.speech.microsoft.com/cognitiveservices/websocket/v1 & we have an API key ,etc.

And here are the questions:

How do I change the sample code to use the custom avatar? I am guessing that I need to do some changes to this code as I have to provide the endpoint as well as the API key right? On the sample code above, there's no way to provide it. So it is normal that when I provide my custom avatar name in this sample code, i get an error saying customer has no access to that avatar :-(

User's image

Thanks in advance!

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.