Skip to content

Commit 0e564a7

Browse files
authored
Merge pull request #3430 from MicrosoftDocs/main
3/10/2025 11:00 AM IST Publish
2 parents 583ed79 + 352afa1 commit 0e564a7

File tree

5 files changed

+41
-32
lines changed

5 files changed

+41
-32
lines changed

articles/ai-services/openai/realtime-audio-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use the Realtime API to interact with the Azure OpenAI
55
manager: nitinme
66
ms.service: azure-ai-openai
77
ms.topic: conceptual
8-
ms.date: 2/7/2024
8+
ms.date: 2/7/2025
99
author: eric-urban
1010
ms.author: eur
1111
recommendations: false

articles/ai-services/openai/text-to-speech-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Use the Azure OpenAI Service for text to speech with OpenAI voices.
55
manager: nitinme
66
ms.service: azure-ai-openai
77
ms.topic: quickstart
8-
ms.date: 9/12/2024
8+
ms.date: 3/10/2025
99
ms.reviewer: eur
1010
ms.author: eur
1111
author: eric-urban

articles/ai-services/openai/whisper-quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: nitinme
66
ms.service: azure-ai-openai
77
ms.custom: devx-track-python
88
ms.topic: quickstart
9-
ms.date: 8/09/2024
9+
ms.date: 3/10/2025
1010
ms.reviewer: eur
1111
ms.author: eur
1212
author: eric-urban

articles/ai-services/recover-purge-resources.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@ author: eric-urban
66
manager: nitinme
77
ms.service: azure-ai-services
88
ms.topic: how-to
9-
ms.date: 09/12/2024
9+
ms.date: 3/10/2025
1010
ms.author: eur
1111
---
1212

1313
# Recover or purge deleted Azure AI services resources
1414

1515
This article provides instructions on how to recover or purge an Azure AI services resource that is already deleted.
1616

17-
Once you delete a resource, you won't be able to create another one with the same name for 48 hours. To create a resource with the same name, you need to purge the deleted resource.
17+
Once you delete a resource, you can't create another one with the same name for 48 hours. To create a resource with the same name, you need to purge the deleted resource.
1818

1919
> [!NOTE]
2020
> * The instructions in this article are applicable to both a multi-service resource and a single-service resource. A multi-service resource enables access to multiple Azure AI services using a single key and endpoint. On the other hand, a single-service resource enables access to just that specific Azure AI service for which the resource was created.
2121
>
22-
> * Charges for provisioned deployments on a deleted resource will continue until the resource is purged. To prevent this, delete a resource's deployment before deleting the resource.
22+
> * Charges for provisioned deployments on a deleted resource continue until the resource is purged. To prevent unnecessary charges, delete a resource's deployment before deleting the resource.
2323
2424
## Recover a deleted resource
2525

2626
The following prerequisites must be met before you can recover a deleted resource:
2727

28-
* The resource to be recovered must have been deleted within the past 48 hours.
29-
* The resource to be recovered must not have been purged already. A purged resource can't be recovered.
28+
* The resource to be recovered must be deleted within the past 48 hours.
29+
* The resource to be recovered must not be purged already. A purged resource can't be recovered.
3030
* Before you attempt to recover a deleted resource, make sure that the resource group for that account exists. If the resource group was deleted, you must recreate it. Recovering a resource group isn't possible. For more information, see [Manage resource groups](/azure/azure-resource-manager/management/manage-resource-groups-portal).
31-
* If the deleted resource used customer-managed keys with Azure Key Vault and the key vault have also been deleted, then you must restore the key vault before you restore the Azure AI services resource. For more information, see [Azure Key Vault recovery management](/azure/key-vault/general/key-vault-recovery).
32-
* If the deleted resource used a customer-managed storage and storage account has also been deleted, you must restore the storage account before you restore the Azure AI services resource. For instructions, see [Recover a deleted storage account](/azure/storage/common/storage-account-recover).
31+
* If the deleted resource used customer-managed keys with Azure Key Vault and the key vault is also deleted, then you must restore the key vault before you restore the Azure AI services resource. For more information, see [Azure Key Vault recovery management](/azure/key-vault/general/key-vault-recovery).
32+
* If the deleted resource used a customer-managed storage and storage account is also deleted, you must restore the storage account before you restore the Azure AI services resource. For instructions, see [Recover a deleted storage account](/azure/storage/common/storage-account-recover).
3333

3434
To recover a deleted Azure AI services resource, use the following commands. Where applicable, replace:
3535

@@ -43,12 +43,12 @@ To recover a deleted Azure AI services resource, use the following commands. Whe
4343

4444
If you need to recover a deleted resource, navigate to the hub of the Azure AI services API type and select "Manage deleted resources" from the menu. For example, if you would like to recover an "Anomaly detector" resource, search for "Anomaly detector" in the search bar and select the service. Then select **Manage deleted resources**.
4545

46-
Select the subscription in the dropdown list to locate the deleted resource you would like to recover. Select one or more of the deleted resources and select **Recover**.
46+
To locate the deleted resource you would like to recover, select the subscription in the dropdown list. Select one or more of the deleted resources and select **Recover**.
4747

4848
:::image type="content" source="media/managing-deleted-resource.png" alt-text="A screenshot showing deleted resources you can recover." lightbox="media/managing-deleted-resource.png":::
4949

5050
> [!NOTE]
51-
> It can take a couple of minutes for your deleted resource(s) to recover and show up in the list of the resources. Select the **Refresh** button in the menu to update the list of resources.
51+
> It can take a couple of minutes for your deleted resource to recover and show up in the list of the resources. Select the **Refresh** button in the menu to update the list of resources.
5252
5353
# [Rest API](#tab/rest-api)
5454

@@ -105,7 +105,7 @@ To purge a deleted Azure AI services resource, use the following commands. Where
105105
* `{location}` with the location of your resource
106106

107107
> [!NOTE]
108-
> Once a resource is purged, it is permanently deleted and cannot be restored. You will lose all data and keys associated with the resource.
108+
> Once a resource is purged, it's permanently deleted and can't be restored. You lose all data and keys associated with the resource.
109109
110110

111111
# [Azure portal](#tab/azure-portal)
@@ -114,7 +114,7 @@ If you need to purge a deleted resource, the steps are similar to recovering a d
114114

115115
1. Navigate to the hub of the Azure AI services API type of your deleted resource. For example, if you would like to purge an "Anomaly detector" resource, search for "Anomaly detector" in the search bar and select the service. Then select **Manage deleted resources** from the menu.
116116

117-
1. Select the subscription in the dropdown list to locate the deleted resource you would like to purge.
117+
1. To locate the deleted resource you would like to purge, select the subscription in the dropdown list.
118118

119119
1. Select one or more deleted resources and select **Purge**. Purging permanently deletes an Azure AI services resource.
120120

articles/ai-services/speech-service/how-to-pronunciation-assessment.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ let recognizer = try! SPXSpeechRecognizer(speechConfiguration: speechConfig, lan
203203
> [!TIP]
204204
> If you aren't sure which locale to set for a language that has multiple locales, try each locale separately. For instance, for Spanish, try `es-ES` and `es-MX`. Determine which locale scores higher for your scenario.
205205
206-
You must create a `PronunciationAssessmentConfig` object. You can set `EnableProsodyAssessment` and `EnableContentAssessmentWithTopic` to enable prosody and content assessment. For more information, see [configuration methods](#configuration-methods).
206+
You must create a `PronunciationAssessmentConfig` object. You can set `EnableProsodyAssessment` to enable prosody assessment. For more information, see [configuration methods](#configuration-methods).
207207

208208
::: zone pivot="programming-language-csharp"
209209

@@ -214,7 +214,6 @@ var pronunciationAssessmentConfig = new PronunciationAssessmentConfig(
214214
granularity: Granularity.Phoneme,
215215
enableMiscue: false);
216216
pronunciationAssessmentConfig.EnableProsodyAssessment();
217-
pronunciationAssessmentConfig.EnableContentAssessmentWithTopic("greeting");
218217
```
219218

220219
::: zone-end
@@ -224,7 +223,6 @@ pronunciationAssessmentConfig.EnableContentAssessmentWithTopic("greeting");
224223
```cpp
225224
auto pronunciationConfig = PronunciationAssessmentConfig::Create("", PronunciationAssessmentGradingSystem::HundredMark, PronunciationAssessmentGranularity::Phoneme, false);
226225
pronunciationConfig->EnableProsodyAssessment();
227-
pronunciationConfig->EnableContentAssessmentWithTopic("greeting");
228226
```
229227

230228
::: zone-end
@@ -235,7 +233,6 @@ pronunciationConfig->EnableContentAssessmentWithTopic("greeting");
235233
PronunciationAssessmentConfig pronunciationConfig = new PronunciationAssessmentConfig("",
236234
PronunciationAssessmentGradingSystem.HundredMark, PronunciationAssessmentGranularity.Phoneme, false);
237235
pronunciationConfig.enableProsodyAssessment();
238-
pronunciationConfig.enableContentAssessmentWithTopic("greeting");
239236
```
240237

241238
::: zone-end
@@ -263,7 +260,6 @@ var pronunciationAssessmentConfig = new sdk.PronunciationAssessmentConfig(
263260
granularity: sdk.PronunciationAssessmentGranularity.Phoneme,
264261
enableMiscue: false);
265262
pronunciationAssessmentConfig.enableProsodyAssessment();
266-
pronunciationAssessmentConfig.enableContentAssessmentWithTopic("greeting");
267263
```
268264

269265
::: zone-end
@@ -274,7 +270,6 @@ pronunciationAssessmentConfig.enableContentAssessmentWithTopic("greeting");
274270
SPXPronunciationAssessmentConfiguration *pronunicationConfig =
275271
[[SPXPronunciationAssessmentConfiguration alloc] init:@"" gradingSystem:SPXPronunciationAssessmentGradingSystem_HundredMark granularity:SPXPronunciationAssessmentGranularity_Phoneme enableMiscue:false];
276272
[pronunicationConfig enableProsodyAssessment];
277-
[pronunicationConfig enableContentAssessmentWithTopic:@"greeting"];
278273
```
279274
280275
::: zone-end
@@ -287,7 +282,6 @@ let pronAssessmentConfig = try! SPXPronunciationAssessmentConfiguration("",
287282
granularity: .phoneme,
288283
enableMiscue: false)
289284
pronAssessmentConfig.enableProsodyAssessment()
290-
pronAssessmentConfig.enableContentAssessment(withTopic: "greeting")
291285
```
292286

293287
::: zone-end
@@ -311,16 +305,13 @@ This table lists some of the key configuration parameters for pronunciation asse
311305
This table lists some of the optional methods you can set for the `PronunciationAssessmentConfig` object.
312306

313307
> [!NOTE]
314-
> Content and prosody assessments are only available in the [en-US](./language-support.md?tabs=pronunciation-assessment) locale.
308+
> Prosody assessment is only available in the [en-US](./language-support.md?tabs=pronunciation-assessment) locale.
315309
>
316-
> To explore the content and prosody assessments, upgrade to the SDK version 1.35.0 or later.
317-
>
318-
> There is no length limit for the topic parameter.
310+
> To explore the prosody assessment, upgrade to the SDK version 1.35.0 or later.
319311
320312
| Method | Description |
321313
|-----------|-------------|
322314
| `EnableProsodyAssessment` | Enables prosody assessment for your pronunciation evaluation. This feature assesses aspects like stress, intonation, speaking speed, and rhythm. This feature provides insights into the naturalness and expressiveness of your speech.<br/><br/>Enabling prosody assessment is optional. If this method is called, the `ProsodyScore` result value is returned. |
323-
| `EnableContentAssessmentWithTopic` | Enables content assessment. A content assessment is part of the [unscripted assessment](#unscripted-assessment-results) for the speaking language learning scenario. By providing a description, you can enhance the assessment's understanding of the specific topic being spoken about. For example, in C# call `pronunciationAssessmentConfig.EnableContentAssessmentWithTopic("greeting");`. You can replace 'greeting' with your desired text to describe a topic. The description has no length limit and currently only supports the `en-US` locale. |
324315

325316
## Get pronunciation assessment results
326317

@@ -528,19 +519,14 @@ This table lists some of the key pronunciation assessment results for the script
528519

529520
This table lists some of the key pronunciation assessment results for the unscripted assessment, or speaking scenario.
530521

531-
`VocabularyScore`, `GrammarScore`, and `TopicScore` parameters roll up to the combined content assessment.
532-
533522
> [!NOTE]
534-
> Content and prosody assessments are only available in the [en-US](./language-support.md?tabs=pronunciation-assessment) locale.
523+
> Prosody assessment is only available in the [en-US](./language-support.md?tabs=pronunciation-assessment) locale.
535524
536525
| Response parameter | Description | Granularity |
537526
|:-------------------|:------------|:------------|
538527
| `AccuracyScore` | Pronunciation accuracy of the speech. Accuracy indicates how closely the phonemes match a native speaker's pronunciation. Syllable, word, and full text accuracy scores are aggregated from phoneme-level accuracy score, and refined with assessment objectives. | Phoneme level,<br>Syllable level (en-US only),<br>Word level,<br>Full Text level |
539528
| `FluencyScore` | Fluency of the given speech. Fluency indicates how closely the speech matches a native speaker's use of silent breaks between words. | Full Text level |
540529
| `ProsodyScore` | Prosody of the given speech. Prosody indicates how natural the given speech is, including stress, intonation, speaking speed, and rhythm. | Full Text level |
541-
| `VocabularyScore` | Proficiency in lexical usage. It evaluates the speaker's effective usage of words and their appropriateness within the given context to express ideas accurately, and the level of lexical complexity. | Full Text level |
542-
| `GrammarScore` | Correctness in using grammar and variety of sentence patterns. Lexical accuracy, grammatical accuracy, and diversity of sentence structures jointly elevate grammatical errors. | Full Text level|
543-
| `TopicScore` | Level of understanding and engagement with the topic, which provides insights into the speaker’s ability to express their thoughts and ideas effectively and the ability to engage with the topic. | Full Text level|
544530
| `PronScore` | Overall score of the pronunciation quality of the given speech. `PronScore` is calculated from `AccuracyScore`, `FluencyScore`, and `ProsodyScore` with weight, provided that `ProsodyScore` is available. If `ProsodyScore` isn't available, `PronScore` won't consider that score.| Full Text level |
545531
| `ErrorType` | A word is badly pronounced, improperly inserted with a break, or missing a break at punctuation. It also indicates whether a pronunciation is monotonically rising, falling, or flat on the utterance. Possible values are `None` for no error on this word, `Mispronunciation`, `UnexpectedBreak`, `MissingBreak`, and `Monotone`. | Word level |
546532

@@ -1118,6 +1104,29 @@ For the speaking scenario (the completeness score isn't applicable):
11181104

11191105
This formula provides a weighted calculation based on the importance of each score, ensuring a comprehensive evaluation of pronunciation.
11201106

1107+
## Content assessment
1108+
1109+
For some recognized speech, you might also want to get content assessment results for vocabulary, grammar, and topic relevance. You can use a chat model such as Azure OpenAI `gpt-4o` to get the content assessment results. For more information about using chat models, see [Azure OpenAI Service models](../openai/concepts/models.md) and the Azure AI Model Inference API [chat completions reference documentation](/rest/api/aifoundry/model-inference/get-chat-completions/get-chat-completions).
1110+
1111+
The user and system messages are used to set the context for the chat model. In the following example, the user message contains the essay to be assessed, and the system message provides instructions on how to evaluate the essay.
1112+
1113+
1114+
```json
1115+
{
1116+
"messages": [
1117+
{
1118+
"role": "system",
1119+
"content": "You are an English teacher and please help to grade a student's essay from vocabulary and grammar and topic relevance on how well the essay aligns with the title, and output format as: {\"vocabulary\": *.*(0-100), \"grammar\": *.*(0-100), \"topic\": *.*(0-100)}."
1120+
},
1121+
{
1122+
"role": "user",
1123+
"content": "Example1: this essay: \"sampleSentence1\" has vocabulary and grammar scores of ** and **, respectively. Example2: this essay: \"sampleSentence2\" has vocabulary and grammar scores of ** and **, respectively. Example3: this essay: \"sampleSentence3\" has vocabulary and grammar scores of ** and **, respectively. The essay for you to score is \"sendText\", and the title is \"topic\". The transcript is from speech recognition so that please first add punctuations when needed, remove duplicates and unnecessary un uh from oral speech, then find all the misuse of words and grammar errors in this essay, find advanced words and grammar usages, and finally give scores based on this information. Please only respond as this format {\"vocabulary\": *.*(0-100), \"grammar\": *.*(0-100)}, \"topic\": *.*(0-100)}. [THE TRANSCRIPT FROM SPEECH RECOGNITION IS REDACTED FOR BREVITY]"
1124+
}
1125+
]
1126+
}
1127+
```
1128+
1129+
11211130
## Related content
11221131

11231132
- Learn about quality [benchmark](https://aka.ms/pronunciationassessment/techblog).

0 commit comments

Comments
 (0)