Skip to content

Commit a198e80

Browse files
committed
fixes
1 parent 0bca125 commit a198e80

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ recommendations: false
1616
- An Azure OpenAI resource with a Whisper model deployed in a [supported region](../concepts/models.md#whisper-models). For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
1717
- [The .NET 8.0 SDK](https://dotnet.microsoft.com/en-us/download)
1818

19-
## Set up
20-
2119
## Create the .NET app
2220

2321
1. Create a .NET app using the `dotnet new` command:
@@ -45,8 +43,8 @@ To make requests to your Azure OpenAI service, you need the service endpoint as
4543
- [Microsoft Entra ID](/entra/fundamentals/whatis) is the recommended approach for authenticating to Azure services and is more secure than key-based alternatives.
4644
- Access keys allow you to provide a secret key to connect to your resource.
4745
48-
> [!IMPORTANT]
49-
> Access keys should be used with caution. If your service access key is lost or accidentally exposed in an insecure location, your service may become vulnerable. Anyone who has the access key is able to authorize requests against the Azure OpenAI service.
46+
> [!IMPORTANT]
47+
> Access keys should be used with caution. If your service access key is lost or accidentally exposed in an insecure location, your service may become vulnerable. Anyone who has the access key is able to authorize requests against the Azure OpenAI service.
5048
5149
### Get the Azure OpenAI endpoint
5250
@@ -81,7 +79,7 @@ The access key value can be found in the **Keys & Endpoint** section when examin
8179
using Azure.Identity; // Required for Passwordless auth
8280
8381
var endpoint = new Uri(
84-
Environment.GetEnvironmentVariable("YOUR_OPENAI_ENDPOINT") ?? throw new ArgumentNullException());
82+
Environment.GetEnvironmentVariable("YOUR_OPENAI_ENDPOINT") ?? throw new ArgumentNullException());
8583
var credentials = new DefaultAzureCredential();
8684
8785
// Use this line for key auth
@@ -111,4 +109,4 @@ The access key value can be found in the **Keys & Endpoint** section when examin
111109
dotnet run
112110
```
113111
114-
The app generates an audio file at the location you specified for the `speechFilePath` variable. Play the file on your device to hear the generated audio.
112+
The app generates an audio file at the location you specified for the `speechFilePath` variable. Play the file on your device to hear the generated audio.

0 commit comments

Comments
 (0)