Skip to content

Commit 232748d

Browse files
Merge pull request #3609 from wangkenpu/wake/fix_region_link
[PronScore] fix the link of the supported regions
2 parents 62af18b + 5678615 commit 232748d

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

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

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In this article, you learn how to evaluate pronunciation with speech to text thr
3030

3131
Pronunciation assessment supports uninterrupted streaming mode. The recording time can be unlimited through the Speech SDK. As long as you don't stop recording, the evaluation process doesn't finish and you can pause and resume evaluation conveniently.
3232

33-
For information about availability of pronunciation assessment, see [supported languages](language-support.md?tabs=pronunciation-assessment) and [available regions](regions.md#regions).
33+
For information about availability of pronunciation assessment, see [supported languages](language-support.md?tabs=pronunciation-assessment) and [available regions](regions.md?tabs=scenarios#regions).
3434

3535
As a baseline, usage of pronunciation assessment costs the same as speech to text for pay-as-you-go or commitment tier [pricing](https://azure.microsoft.com/pricing/details/cognitive-services/speech-services). If you [purchase a commitment tier](../commitment-tier.md) for speech to text, the spend for pronunciation assessment goes towards meeting the commitment. For more information, see [Pricing](./pronunciation-assessment-tool.md#pricing).
3636

@@ -146,7 +146,7 @@ In the `SpeechRecognizer`, you can specify the language to learn or practice imp
146146
var recognizer = new SpeechRecognizer(speechConfig, "en-US", audioConfig);
147147
```
148148

149-
::: zone-end
149+
::: zone-end
150150

151151
::: zone pivot="programming-language-cpp"
152152

@@ -208,79 +208,79 @@ You must create a `PronunciationAssessmentConfig` object. You can set `EnablePro
208208
::: zone pivot="programming-language-csharp"
209209

210210
```csharp
211-
var pronunciationAssessmentConfig = new PronunciationAssessmentConfig(
212-
referenceText: "",
213-
gradingSystem: GradingSystem.HundredMark,
214-
granularity: Granularity.Phoneme,
215-
enableMiscue: false);
216-
pronunciationAssessmentConfig.EnableProsodyAssessment();
211+
var pronunciationAssessmentConfig = new PronunciationAssessmentConfig(
212+
referenceText: "",
213+
gradingSystem: GradingSystem.HundredMark,
214+
granularity: Granularity.Phoneme,
215+
enableMiscue: false);
216+
pronunciationAssessmentConfig.EnableProsodyAssessment();
217217
```
218218

219-
::: zone-end
219+
::: zone-end
220220

221221
::: zone pivot="programming-language-cpp"
222222

223223
```cpp
224-
auto pronunciationConfig = PronunciationAssessmentConfig::Create("", PronunciationAssessmentGradingSystem::HundredMark, PronunciationAssessmentGranularity::Phoneme, false);
225-
pronunciationConfig->EnableProsodyAssessment();
224+
auto pronunciationConfig = PronunciationAssessmentConfig::Create("", PronunciationAssessmentGradingSystem::HundredMark, PronunciationAssessmentGranularity::Phoneme, false);
225+
pronunciationConfig->EnableProsodyAssessment();
226226
```
227227

228228
::: zone-end
229229

230230
::: zone pivot="programming-language-java"
231231

232232
```Java
233-
PronunciationAssessmentConfig pronunciationConfig = new PronunciationAssessmentConfig("",
234-
PronunciationAssessmentGradingSystem.HundredMark, PronunciationAssessmentGranularity.Phoneme, false);
235-
pronunciationConfig.enableProsodyAssessment();
233+
PronunciationAssessmentConfig pronunciationConfig = new PronunciationAssessmentConfig("",
234+
PronunciationAssessmentGradingSystem.HundredMark, PronunciationAssessmentGranularity.Phoneme, false);
235+
pronunciationConfig.enableProsodyAssessment();
236236
```
237237

238238
::: zone-end
239239

240240
::: zone pivot="programming-language-python"
241241

242242
```Python
243-
pronunciation_config = speechsdk.PronunciationAssessmentConfig(
244-
reference_text="",
245-
grading_system=speechsdk.PronunciationAssessmentGradingSystem.HundredMark,
246-
granularity=speechsdk.PronunciationAssessmentGranularity.Phoneme,
247-
enable_miscue=False)
248-
pronunciation_config.enable_prosody_assessment()
243+
pronunciation_config = speechsdk.PronunciationAssessmentConfig(
244+
reference_text="",
245+
grading_system=speechsdk.PronunciationAssessmentGradingSystem.HundredMark,
246+
granularity=speechsdk.PronunciationAssessmentGranularity.Phoneme,
247+
enable_miscue=False)
248+
pronunciation_config.enable_prosody_assessment()
249249
```
250250

251251
::: zone-end
252252

253253
::: zone pivot="programming-language-javascript"
254254

255255
```JavaScript
256-
var pronunciationAssessmentConfig = new sdk.PronunciationAssessmentConfig(
257-
referenceText: "",
258-
gradingSystem: sdk.PronunciationAssessmentGradingSystem.HundredMark,
259-
granularity: sdk.PronunciationAssessmentGranularity.Phoneme,
260-
enableMiscue: false);
261-
pronunciationAssessmentConfig.enableProsodyAssessment();
256+
var pronunciationAssessmentConfig = new sdk.PronunciationAssessmentConfig(
257+
referenceText: "",
258+
gradingSystem: sdk.PronunciationAssessmentGradingSystem.HundredMark,
259+
granularity: sdk.PronunciationAssessmentGranularity.Phoneme,
260+
enableMiscue: false);
261+
pronunciationAssessmentConfig.enableProsodyAssessment();
262262
```
263263

264264
::: zone-end
265265

266266
::: zone pivot="programming-language-objectivec"
267267

268268
```ObjectiveC
269-
SPXPronunciationAssessmentConfiguration *pronunicationConfig =
270-
[[SPXPronunciationAssessmentConfiguration alloc] init:@"" gradingSystem:SPXPronunciationAssessmentGradingSystem_HundredMark granularity:SPXPronunciationAssessmentGranularity_Phoneme enableMiscue:false];
271-
[pronunicationConfig enableProsodyAssessment];
269+
SPXPronunciationAssessmentConfiguration *pronunicationConfig =
270+
[[SPXPronunciationAssessmentConfiguration alloc] init:@"" gradingSystem:SPXPronunciationAssessmentGradingSystem_HundredMark granularity:SPXPronunciationAssessmentGranularity_Phoneme enableMiscue:false];
271+
[pronunicationConfig enableProsodyAssessment];
272272
```
273273
274274
::: zone-end
275275
276276
::: zone pivot="programming-language-swift"
277277
278278
```swift
279-
let pronAssessmentConfig = try! SPXPronunciationAssessmentConfiguration("",
280-
gradingSystem: .hundredMark,
281-
granularity: .phoneme,
282-
enableMiscue: false)
283-
pronAssessmentConfig.enableProsodyAssessment()
279+
let pronAssessmentConfig = try! SPXPronunciationAssessmentConfiguration("",
280+
gradingSystem: .hundredMark,
281+
granularity: .phoneme,
282+
enableMiscue: false)
283+
pronAssessmentConfig.enableProsodyAssessment()
284284
```
285285

286286
::: zone-end
@@ -305,7 +305,7 @@ This table lists some of the optional methods you can set for the `Pronunciation
305305

306306
> [!NOTE]
307307
> Prosody assessment is only available in the [en-US](./language-support.md?tabs=pronunciation-assessment) locale.
308-
>
308+
>
309309
> To explore the prosody assessment, upgrade to the SDK version 1.35.0 or later.
310310
311311
| Method | Description |
@@ -422,7 +422,7 @@ speechRecognizer.recognizeOnceAsync((speechRecognitionResult: SpeechSDK.SpeechRe
422422

423423
To learn how to specify the learning language for pronunciation assessment in your own application, see [sample code](https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/js/node/pronunciationAssessmentContinue.js#LL37C4-L37C52).
424424

425-
::: zone-end
425+
::: zone-end
426426

427427
::: zone pivot="programming-language-python"
428428

@@ -443,7 +443,7 @@ pronunciation_assessment_result_json = speech_recognition_result.properties.get(
443443

444444
To learn how to specify the learning language for pronunciation assessment in your own application, see [sample code](https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/python/console/speech_sample.py#LL937C1-L937C1).
445445

446-
::: zone-end
446+
::: zone-end
447447

448448
::: zone pivot="programming-language-objectivec"
449449

@@ -787,7 +787,7 @@ To request IPA phonemes, set the phoneme alphabet to `IPA`. If you don't specify
787787
pronunciationAssessmentConfig.PhonemeAlphabet = "IPA";
788788
```
789789

790-
::: zone-end
790+
::: zone-end
791791

792792
::: zone pivot="programming-language-cpp"
793793

@@ -1090,7 +1090,7 @@ pronunciationAssessmentConfig?.nbestPhonemeCount = 5
10901090
## Pronunciation score calculation
10911091

10921092
Pronunciation scores are calculated by weighting accuracy, prosody, fluency, and completeness scores based on specific formulas for reading and speaking scenarios.
1093-
1093+
10941094
When sorting the scores of accuracy, prosody, fluency, and completeness from low to high (if each score is available) and representing the lowest score to the highest score as s0 to s3, the pronunciation score is calculated as follows:
10951095

10961096
For reading scenario:

0 commit comments

Comments
 (0)