Skip to content

Commit b894cae

Browse files
authored
1 parent ca0c0c8 commit b894cae

35 files changed

+1
-12956
lines changed

samples/js/node/web/voice-live-avatar/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

samples/js/node/web/voice-live-avatar/.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

samples/js/node/web/voice-live-avatar/.gitignore

Lines changed: 0 additions & 33 deletions
This file was deleted.

samples/js/node/web/voice-live-avatar/Dockerfile

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1 @@
1-
# Instructions to run Microsoft Azure Voice Live with Avatar sample code
2-
This sample demonstrates the usage of Azure Voice Live API with avatar.
3-
4-
### Prerequisites
5-
- Docker installed on your machine. You can download and install Docker from [here](https://www.docker.com/get-started).
6-
- An active Azure account. If you don't have an Azure account, you can create a account [here](https://azure.microsoft.com/free/ai-services).
7-
- A Microsoft Foundry resource created in one of the supported regions. For more information about region availability, see the [voice live overview documentation](https://learn.microsoft.com/azure/ai-services/speech-service/voice-live).
8-
9-
### Avatar available locations
10-
The avatar feature is currently available in the following service regions: Southeast Asia, North Europe, West Europe, Sweden Central, South Central US, East US 2, and West US 2.
11-
12-
### Build the sample
13-
To run the sample, you need to build it into a Docker image: navigate to the folder containing this README.md document and run the following command:
14-
```bash
15-
docker build -t voice-live-avatar .
16-
```
17-
18-
This command will create a Docker image named `voice-live-avatar`.
19-
20-
### Start the sample
21-
To start the sample, use the following command:
22-
```bash
23-
docker run --rm -p 3000:3000 voice-live-avatar
24-
```
25-
26-
Then open your web browser and navigate to `http://localhost:3000` to access the sample.
27-
28-
### Configure and play the sample
29-
30-
* Step 1: Under the `Connection Settings` section, fill `Azure AI Services Endpoint` and `Subscription Key`, which can be obtained from the `Keys and Endpoint` tab in your Azure AI Services resource. The endpoint can be the regional endpoint (e.g., `https://<region>.api.cognitive.microsoft.com/`) or a custom domain endpoint (e.g., `https://<custom-domain>.cognitiveservices.azure.com/`).
31-
32-
* Step 2: Under `Conversation Settings` section, toggle the `Avatar` switch to enable avatar feature. Then select an avatar from the `Avatar` dropdown list. Toggle `Use Photo Avatar` switch if you want to use photo avatar. Then choose a prebuilt avatar character from the dropdown list below. If you want to use a custom avatar, toggle the `Use Custom Avatar` switch and fill the character name in the `Character` field below.
33-
34-
* Step 3: Click `Connect` button to start the conversation. Once connected, you should see the avatar appearing on the page, and you can click `Turn on microphone` and start talking with the avatar with speech.
35-
36-
* Step 4: On top of the page, you can toggle the `Developer mode` switch to enable developer mode, which will show chat history in text and additional logs useful for debugging.
37-
38-
### Deployment
39-
40-
This sample can be deployed to cloud for global access. The recommended hosting platform is [Azure Container Apps](https://learn.microsoft.com/azure/container-apps/overview). Here are the steps to deploy this sample to `Azure Container Apps`:
41-
42-
* Step 1: Push the Docker image to a container registry, such as [Azure Container Registry](https://learn.microsoft.com/azure/container-registry/). You can use the following command to push the image to Azure Container Registry:
43-
```bash
44-
docker tag voice-live-avatar <your-registry-name>.azurecr.io/voice-live-avatar:latest
45-
docker push <your-registry-name>.azurecr.io/voice-live-avatar:latest
46-
```
47-
48-
* Step 2: Create an `Azure Container App` and deploy the Docker image built from above steps, following [Deploy from an existing container image](https://learn.microsoft.com/azure/container-apps/quickstart-portal). Make sure to set the environment variables as described in the previous sections, such as `SPEECH_REGION`, `SPEECH_KEY`, etc.
49-
50-
* Step 3: Once the `Azure Container App` is created, you can access the sample by navigating to the URL of the `Azure Container App` in your browser.
1+
This sample has been moved to https://github.com/azure-ai-foundry/voicelive-samples/tree/main/javascript/voice-live-avatar

0 commit comments

Comments
 (0)