Skip to content

Commit 42daf04

Browse files
committed
fix
1 parent 6c301bc commit 42daf04

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

articles/ai-services/openai/includes/text-to-speech-dotnet.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ Go to your resource in the Azure portal. The **Endpoint and Keys** can be found
4646
cd OpenAISpeech
4747
```
4848
49+
## Install the client library
50+
51+
Install the [`Azure.OpenAI`](https://www.nuget.org/packages/Azure.AI.OpenAI/) client library:
52+
53+
```dotnetcli
54+
dotnet add package Azure.AI.OpenAI
55+
```
56+
4957
## Passwordless authentication is recommended
5058

5159
Passwordless authentication is more secure than key-based alternatives and is the recommended approach for connecting to Azure services. If you choose to use Passwordless authentication, you'll need to complete the following:
@@ -59,21 +67,10 @@ Passwordless authentication is more secure than key-based alternatives and is th
5967
1. Assign the `Cognitive Services User` role to your user account. This can be done in the Azure portal on your OpenAI resource under **Access control (IAM)** > **Add role assignment**.
6068
1. Sign-in to Azure using Visual Studio or the Azure CLI via `az login`.
6169
62-
## Install the client library
63-
64-
Install the [`Azure.OpenAI`](https://www.nuget.org/packages/Azure.AI.OpenAI/) client library:
65-
66-
```dotnetcli
67-
dotnet add package Azure.AI.OpenAI
68-
```
69-
7070
## Update the app code
7171
7272
1. Replace the contents of `program.cs` with the following code and update the placeholder values with your own.
7373
74-
> [!NOTE]
75-
> You can get sample audio files, such as *wikipediaOcelot.wav*, from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
76-
7774
```csharp
7875
using Azure;
7976
using Azure.AI.OpenAI;

0 commit comments

Comments
 (0)