You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Give your app the ability to hear and speak by pairing Azure OpenAI Service with Azure AI Speech to enable richer interactions.
22
20
23
21
In this quickstart, you use Azure OpenAI Service and Azure AI Speech to:
@@ -30,39 +28,36 @@ The speech to text and text to speech features can be used together or separatel
30
28
## Prerequisites
31
29
32
30
- An Azure subscription - <ahref="https://azure.microsoft.com/free/cognitive-services"target="_blank">Create one for free</a>.
33
-
- An [AI Studio hub](../how-to/create-azure-ai-resource.md) with a chat model deployed. For more information about model deployment, see the [resource deployment guide](../../ai-services/openai/how-to/create-resource.md).
34
-
- An [AI Studio project](../how-to/create-projects.md).
35
-
31
+
- An [AI Studio project](../how-to/create-projects.md).
32
+
- A deployed [Azure OpenAI](../how-to/deploy-models-openai.md) chat model. This guide is tested with a `gpt-4` model.
36
33
37
34
## Configure the chat playground
38
35
39
36
Before you can start a chat session, you need to configure the chat playground to use the speech to text and text to speech features.
40
37
41
38
1. Sign in to [Azure AI Studio](https://ai.azure.com).
42
39
1. Go to your project or [create a new project](../how-to/create-projects.md) in Azure AI Studio.
43
-
1. Select **Playground** > **Chat** from the left pane.
40
+
1. Select **Chat** from the list of playgrounds.
44
41
1. Select your deployed chat model from the **Deployment** dropdown.
45
42
46
43
:::image type="content" source="../media/quickstarts/hear-speak/playground-config-deployment.png" alt-text="Screenshot of the chat playground with mode and deployment highlighted." lightbox="../media/quickstarts/hear-speak/playground-config-deployment.png":::
47
44
48
-
1. Select the **Playground settings** button.
45
+
1. Select the **Chat capabilities** button.
49
46
50
-
:::image type="content" source="../media/quickstarts/hear-speak/playground-settings-select.png" alt-text="Screenshot of the chat playground with options to get to the playground settings." lightbox="../media/quickstarts/hear-speak/playground-settings-select.png":::
47
+
:::image type="content" source="../media/quickstarts/hear-speak/playground-settings-select.png" alt-text="Screenshot of the chat playground with options to get to the chat capabilities settings." lightbox="../media/quickstarts/hear-speak/playground-settings-select.png":::
51
48
52
49
> [!NOTE]
53
-
> You should also see the options to select the microphone or speaker buttons. If you select either of these buttons, but haven't yet enabled speech to text or text to speech, you are prompted to enable them in **Playground settings**.
50
+
> You should also see the options to select the microphone or speaker buttons. If you select either of these buttons, but haven't yet enabled speech to text or text to speech, you are prompted to enable them in **Chat capabilities**.
54
51
55
-
1. On the **Playground Settings** page, select the box to acknowledge that usage of the speech feature will incur additional costs. For more information, see [Azure AI Speech pricing](https://azure.microsoft.com/pricing/details/cognitive-services/speech-services/).
52
+
1. On the **Chat capabilities** page, select the box to acknowledge that usage of the speech feature will incur additional costs. For more information, see [Azure AI Speech pricing](https://azure.microsoft.com/pricing/details/cognitive-services/speech-services/).
56
53
57
54
1. Select **Enable speech to text** and **Enable text to speech**.
58
55
59
-
:::image type="content" source="../media/quickstarts/hear-speak/playground-settings-enable-speech.png" alt-text="Screenshot of the playground settings page." lightbox="../media/quickstarts/hear-speak/playground-settings-enable-speech.png":::
56
+
:::image type="content" source="../media/quickstarts/hear-speak/playground-settings-enable-speech.png" alt-text="Screenshot of the chat capabilities page." lightbox="../media/quickstarts/hear-speak/playground-settings-enable-speech.png":::
60
57
61
58
1. Select the language locale and voice you want to use for speaking and hearing. The list of available voices depends on the locale that you select.
62
59
63
-
:::image type="content" source="../media/quickstarts/hear-speak/playground-settings-select-language.png" alt-text="Screenshot of the playground settings page with a voice that speaks Japanese selected." lightbox="../media/quickstarts/hear-speak/playground-settings-select-language.png":::
64
-
65
-
1. Optionally you can enter some sample text and select **Play** to try the voice.
60
+
1. Optionally, you can try the voice before you return to the chat session. Enter some sample text and select **Play** to
66
61
67
62
1. Select **Save**.
68
63
@@ -99,7 +94,7 @@ In this chat session, you use both speech to text and text to speech. You use th
99
94
100
95
## View sample code
101
96
102
-
You can select the **View Code** button to view and copy the sample code, which includes configuration for Azure OpenAI and Speech services.
97
+
You can select the **View code** button to view and copy the sample code, which includes configuration for Azure OpenAI and Speech services.
103
98
104
99
:::image type="content" source="../media/quickstarts/hear-speak/chat-session-view-code-button.png" alt-text="Screenshot of the button to view sample code in the playground." lightbox="../media/quickstarts/hear-speak/chat-session-view-code-button.png":::
0 commit comments