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
Copy file name to clipboardExpand all lines: articles/ai-services/recover-purge-resources.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,30 +6,30 @@ author: eric-urban
6
6
manager: nitinme
7
7
ms.service: azure-ai-services
8
8
ms.topic: how-to
9
-
ms.date: 09/12/2024
9
+
ms.date: 3/10/2025
10
10
ms.author: eur
11
11
---
12
12
13
13
# Recover or purge deleted Azure AI services resources
14
14
15
15
This article provides instructions on how to recover or purge an Azure AI services resource that is already deleted.
16
16
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.
18
18
19
19
> [!NOTE]
20
20
> * 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.
21
21
>
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.
23
23
24
24
## Recover a deleted resource
25
25
26
26
The following prerequisites must be met before you can recover a deleted resource:
27
27
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.
30
30
* 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).
33
33
34
34
To recover a deleted Azure AI services resource, use the following commands. Where applicable, replace:
35
35
@@ -43,12 +43,12 @@ To recover a deleted Azure AI services resource, use the following commands. Whe
43
43
44
44
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**.
45
45
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**.
47
47
48
48
:::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":::
49
49
50
50
> [!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.
52
52
53
53
# [Rest API](#tab/rest-api)
54
54
@@ -105,7 +105,7 @@ To purge a deleted Azure AI services resource, use the following commands. Where
105
105
*`{location}` with the location of your resource
106
106
107
107
> [!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.
109
109
110
110
111
111
# [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
114
114
115
115
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.
116
116
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.
118
118
119
119
1. Select one or more deleted resources and select **Purge**. Purging permanently deletes an Azure AI services resource.
Copy file name to clipboardExpand all lines: articles/ai-services/speech-service/how-to-pronunciation-assessment.md
+27-18Lines changed: 27 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,7 @@ let recognizer = try! SPXSpeechRecognizer(speechConfiguration: speechConfig, lan
203
203
> [!TIP]
204
204
> 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.
205
205
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).
207
207
208
208
::: zone pivot="programming-language-csharp"
209
209
@@ -214,7 +214,6 @@ var pronunciationAssessmentConfig = new PronunciationAssessmentConfig(
@@ -311,16 +305,13 @@ This table lists some of the key configuration parameters for pronunciation asse
311
305
This table lists some of the optional methods you can set for the `PronunciationAssessmentConfig` object.
312
306
313
307
> [!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.
315
309
>
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.
319
311
320
312
| Method | Description |
321
313
|-----------|-------------|
322
314
|`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. |
324
315
325
316
## Get pronunciation assessment results
326
317
@@ -528,19 +519,14 @@ This table lists some of the key pronunciation assessment results for the script
528
519
529
520
This table lists some of the key pronunciation assessment results for the unscripted assessment, or speaking scenario.
530
521
531
-
`VocabularyScore`, `GrammarScore`, and `TopicScore` parameters roll up to the combined content assessment.
532
-
533
522
> [!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.
|`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 |
539
528
|`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 |
540
529
|`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|
544
530
|`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 |
545
531
|`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 |
546
532
@@ -1118,6 +1104,29 @@ For the speaking scenario (the completeness score isn't applicable):
1118
1104
1119
1105
This formula provides a weighted calculation based on the importance of each score, ensuring a comprehensive evaluation of pronunciation.
1120
1106
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
+
1121
1130
## Related content
1122
1131
1123
1132
- Learn about quality [benchmark](https://aka.ms/pronunciationassessment/techblog).
0 commit comments