Skip to content

Commit 1d182f8

Browse files
authored
Merge pull request #260271 from MicrosoftDocs/main
12/5 11:00 AM IST Publish
2 parents 007675e + 586c77c commit 1d182f8

296 files changed

Lines changed: 631 additions & 778 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

articles/ai-services/openai/how-to/migration.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,21 @@ Additional examples including how to handle semantic text search without `embedd
211211
OpenAI doesn't support calling asynchronous methods in the module-level client, instead you should instantiate an async client.
212212

213213
```python
214+
import os
215+
import asyncio
214216
from openai import AsyncAzureOpenAI
215217

216-
client = AsyncAzureOpenAI(
217-
api_key = os.getenv("AZURE_OPENAI_KEY"),
218-
api_version = "2023-10-01-preview",
219-
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
220-
)
221-
response = await client.chat.completions.create(model="gpt-35-turbo", messages=[{"role": "user", "content": "Hello world"}])
218+
async def main():
219+
client = AsyncAzureOpenAI(
220+
api_key = os.getenv("AZURE_OPENAI_KEY"),
221+
api_version = "2023-10-01-preview",
222+
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
223+
)
224+
response = await client.chat.completions.create(model="gpt-35-turbo", messages=[{"role": "user", "content": "Hello world"}])
222225

223-
print(response.model_dump_json(indent=2))
226+
print(response.model_dump_json(indent=2))
227+
228+
asyncio.run(main())
224229
```
225230

226231
## Authentication

articles/ai-services/policy-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Built-in policy definitions for Azure AI services
33
description: Lists Azure Policy built-in policy definitions for Azure AI services. These built-in policy definitions provide common approaches to managing your Azure resources.
4-
ms.date: 11/29/2023
4+
ms.date: 12/04/2023
55
author: nitinme
66
ms.author: nitinme
77
ms.service: azure-ai-services

articles/ai-services/speech-service/text-to-speech-avatar/batch-synthesis-avatar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To perform batch synthesis, you can use the following REST API operations.
3232
| [List batch synthesis](#list-batch-synthesis) | GET | texttospeech/3.1-preview1/batchsynthesis/talkingavatar |
3333
| [Delete batch synthesis](#delete-batch-synthesis) | DELETE | texttospeech/3.1-preview1/batchsynthesis/talkingavatar/{SynthesisId} |
3434

35-
You can refer to the code samples on [GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples).
35+
You can refer to the code samples on [GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/batch-avatar).
3636

3737
## Create a batch synthesis request
3838

articles/ai-services/speech-service/text-to-speech-avatar/real-time-synthesis-avatar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ avatarSynthesizer.speakTextAsync(spokenText).then(
172172
});
173173
```
174174

175-
You can find end-to-end working samples on [GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/browser).
175+
You can find end-to-end working samples on [GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/browser/avatar).
176176

177177
## Edit background
178178

articles/ai-services/speech-service/text-to-speech-avatar/what-is-text-to-speech-avatar.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ You can create custom text to speech avatars that are unique to your product or
6060

6161
## Sample code
6262

63-
Sample code for text to speech avatar is available on GitHub. These samples cover the most popular scenarios:
63+
Sample code for text to speech avatar is available on [GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples). These samples cover the most popular scenarios:
6464

65-
* [Batch synthesis (REST)](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples)
66-
* [Real-time synthesis (SDK)](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/browser)
67-
* [Live chat with Azure Open AI in behind (SDK)](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/browser)
65+
* [Batch synthesis (REST)](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/batch-avatar)
66+
* [Real-time synthesis (SDK)](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/browser/avatar)
67+
* [Live chat with Azure Open AI in behind (SDK)](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/browser/avatar#chat-sample)
6868

6969
## Pricing
7070

articles/ai-studio/concepts/ai-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The Azure AI services resource contains the keys and endpoints needed to authent
7676
| ![Speech icon](../../ai-services/media/service-icons/speech.svg) [Speech](../../ai-services/speech-service/index.yml) | Speech to text, text to speech, translation and speaker recognition |
7777
| ![Vision icon](../../ai-services/media/service-icons/vision.svg) [Vision](../../ai-services/computer-vision/index.yml) | Analyze content in images and videos |
7878

79-
Large language models that can be used to generate text, speech, images, and more, are hosted by the AI resource. Fine-tuned models and open models deployed from the [model catalog](../how-to/model-catalog.md) are always created in the project context for isolation.<br/><br/>Model-as-as-service endpoints including Azure OpenAI base models
79+
Large language models that can be used to generate text, speech, images, and more, are hosted by the AI resource. Fine-tuned models and open models deployed from the [model catalog](../how-to/model-catalog.md) are always created in the project context for isolation.
8080

8181
## Centralized setup and governance
8282

articles/ai-studio/how-to/create-azure-ai-resource.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,35 @@ ms.author: eur
1818

1919
As an administrator, you can create and manage Azure AI resources. Azure AI resources provide a hosting environment for the projects of a team, and help you as an IT admin centrally set up security settings and govern usage and spend. You can create and manage an Azure AI resource from the Azure portal or from the Azure AI Studio.
2020

21-
In this article, you learn how to create an Azure AI resource from AI studio (for getting started) and from the Azure portal (for advanced security setup) and manage it from the Azure portal and Azure AI Studio.
21+
In this article, you learn how to create and manage an Azure AI resource in Azure AI Studio (for getting started) and from the Azure portal (for advanced security setup).
2222

23-
## Create an Azure AI resource in AI studio for getting started
24-
To create a new Azure AI resource, you need either the Owner or Contributor role on the resource group or on an existing Azure AI resource. If you are unable to create an Azure AI resource due to permissions, reach out to your administrator.
23+
## Create an Azure AI resource in AI Studio for getting started
24+
To create a new Azure AI resource, you need either the Owner or Contributor role on the resource group or on an existing Azure AI resource. If you are unable to create an Azure AI resource due to permissions, reach out to your administrator. If your organization is using [Azure Policy](../../governance/policy/overview.md), don't create the resource in AI Studio. Create the Azure AI resource [in the Azure Portal](#create-a-secure-azure-ai-resource-in-the-azure-portal) instead.
2525

26-
1. From Azure AI studio, navigate to `manage` and select `New Azure AI resoure`.
26+
Follow these steps to create a new Azure AI resource in AI Studio.
27+
28+
1. From Azure AI Studio, navigate to `manage` and select `New Azure AI resource`.
2729

2830
1. Fill in **Subscription**, **Resource group**, and **Location** for your new Azure AI resource.
2931

3032
:::image type="content" source="../media/how-to/resource-create-advanced.png" alt-text="Screenshot of the Create an Azure AI resource wizard with the option to set basic information." lightbox="../media/how-to/resource-create-advanced.png":::
3133

3234
1. Optionally, choose an existing Azure AI services provider. By default a new provider is created. New Azure AI services include multiple API endpoints for Speech, Content Safety and Azure OpenAI. You can also bring an existing Azure OpenAI resource.
3335

34-
1. Optionally, connect an existing Azure AI Search instance to share search indices with all projects in this Azure AI resource. No AI Search instance is created for you if you don't provide one.
36+
1. Optionally, connect an existing Azure AI Search instance to share search indices with all projects in this Azure AI resource. An Azure AI Search instance isn't created for you if you don't provide one.
3537

3638
## Create a secure Azure AI resource in the Azure portal
3739

40+
If your organization is using [Azure Policy](../../governance/policy/overview.md), setup a resource that meets your organization's requirements instead of using AI Studio for resource creation.
41+
3842
1. From the Azure portal, search for `Azure AI Studio` and create a new resource by selecting **+ New Azure AI**
3943
1. Fill in **Subscription**, **Resource group**, and **Region**. **Name** your new Azure AI resource.
4044
- For advanced settings, select **Next: Resources** to specify resources, networking, encryption, identity, and tags.
4145
- Your subscription must have access to Azure AI to create this resource.
4246

4347
:::image type="content" source="../media/how-to/resource-create-basics.png" alt-text="Screenshot of the option to set Azure AI resource basic information." lightbox="../media/how-to/resource-create-basics.png":::
4448

45-
1. Select an existing **Azure AI services** or create a new one. New Azure AI services include multiple API endpoints for Speech, Content Safety and Azure OpenAI. You can also bring an existing Azure OpenAI resource. Optionally, choose an existing **Storage account**, **Key vault**, **Container Registry, and **Application insights** to host artifacts generated when you use AI studio.
49+
1. Select an existing **Azure AI services** or create a new one. New Azure AI services include multiple API endpoints for Speech, Content Safety and Azure OpenAI. You can also bring an existing Azure OpenAI resource. Optionally, choose an existing **Storage account**, **Key vault**, **Container Registry, and **Application insights** to host artifacts generated when you use AI Studio.
4650

4751
:::image type="content" source="../media/how-to/resource-create-resources.png" alt-text="Screenshot of the Create an Azure AI resource with the option to set resource information." lightbox="../media/how-to/resource-create-resources.png":::
4852

@@ -150,4 +154,4 @@ Here you're linked to the Azure portal to review the cost analysis information f
150154

151155
- [Create a project](create-projects.md)
152156
- [Learn more about Azure AI Studio](../what-is-ai-studio.md)
153-
- [Learn more about Azure AI resources](../concepts/ai-resources.md)
157+
- [Learn more about Azure AI resources](../concepts/ai-resources.md)

0 commit comments

Comments
 (0)