Skip to content

Commit f9259d4

Browse files
Update how-to-pronunciation-assessment.md
1 parent ea6f62d commit f9259d4

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

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

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ pronunciationConfig->EnableContentAssessmentWithTopic("greeting");
114114
115115
```Java
116116
PronunciationAssessmentConfig pronunciationConfig = new PronunciationAssessmentConfig("",
117-
PronunciationAssessmentGradingSystem.HundredMark, PronunciationAssessmentGranularity.Phoneme, false);
117+
PronunciationAssessmentGradingSystem.HundredMark, PronunciationAssessmentGranularity.Phoneme, false);
118118
pronunciationConfig.enableProsodyAssessment();
119-
pronunciationConfig.enableContentAssessmentWithTopic("greeting");
119+
pronunciationConfig.enableContentAssessmentWithTopic("greeting");
120120
```
121121

122122
::: zone-end
@@ -125,12 +125,12 @@ pronunciationConfig.enableContentAssessmentWithTopic("greeting");
125125

126126
```Python
127127
pronunciation_config = speechsdk.PronunciationAssessmentConfig(
128-
reference_text="",
129-
grading_system=speechsdk.PronunciationAssessmentGradingSystem.HundredMark,
130-
granularity=speechsdk.PronunciationAssessmentGranularity.Phoneme,
131-
enable_miscue=False)
128+
reference_text="",
129+
grading_system=speechsdk.PronunciationAssessmentGradingSystem.HundredMark,
130+
granularity=speechsdk.PronunciationAssessmentGranularity.Phoneme,
131+
enable_miscue=False)
132132
pronunciation_config.enable_prosody_assessment()
133-
pronunciation_config.enable_content_assessment_with_topic("greeting")
133+
pronunciation_config.enable_content_assessment_with_topic("greeting")
134134
```
135135

136136
::: zone-end
@@ -139,12 +139,12 @@ pronunciation_config.enable_content_assessment_with_topic("greeting")
139139

140140
```JavaScript
141141
var pronunciationAssessmentConfig = new sdk.PronunciationAssessmentConfig(
142-
referenceText: "",
143-
gradingSystem: sdk.PronunciationAssessmentGradingSystem.HundredMark,
144-
granularity: sdk.PronunciationAssessmentGranularity.Phoneme,
145-
enableMiscue: false);
142+
referenceText: "",
143+
gradingSystem: sdk.PronunciationAssessmentGradingSystem.HundredMark,
144+
granularity: sdk.PronunciationAssessmentGranularity.Phoneme,
145+
enableMiscue: false);
146146
pronunciationAssessmentConfig.EnableProsodyAssessment();
147-
pronunciationAssessmentConfig.EnableContentAssessmentWithTopic("greeting");
147+
pronunciationAssessmentConfig.EnableContentAssessmentWithTopic("greeting");
148148
```
149149

150150
::: zone-end
@@ -153,10 +153,7 @@ pronunciationAssessmentConfig.EnableContentAssessmentWithTopic("greeting");
153153

154154
```ObjectiveC
155155
SPXPronunciationAssessmentConfiguration *pronunicationConfig =
156-
[[SPXPronunciationAssessmentConfiguration alloc] init:@""
157-
gradingSystem:SPXPronunciationAssessmentGradingSystem_HundredMark
158-
granularity:SPXPronunciationAssessmentGranularity_Phoneme
159-
enableMiscue:false];
156+
[[SPXPronunciationAssessmentConfiguration alloc] init:@"" gradingSystem:SPXPronunciationAssessmentGradingSystem_HundredMark granularity:SPXPronunciationAssessmentGranularity_Phoneme enableMiscue:false];
160157
[pronunicationConfig enableProsodyAssessment];
161158
[pronunicationConfig enableContentAssessmentWithTopic:@"greeting"];
162159
```
@@ -168,11 +165,11 @@ SPXPronunciationAssessmentConfiguration *pronunicationConfig =
168165
169166
```swift
170167
let pronAssessmentConfig = try! SPXPronunciationAssessmentConfiguration("",
171-
gradingSystem: .hundredMark,
172-
granularity: .phoneme,
173-
enableMiscue: false)
168+
gradingSystem: .hundredMark,
169+
granularity: .phoneme,
170+
enableMiscue: false)
174171
pronAssessmentConfig.enableProsodyAssessment()
175-
pronAssessmentConfig.enableContentAssessment(withTopic: "greeting")
172+
pronAssessmentConfig.enableContentAssessment(withTopic: "greeting")
176173
```
177174

178175
::: zone-end
@@ -944,6 +941,6 @@ pronunciationAssessmentConfig?.nbestPhonemeCount = 5
944941

945942
## Next steps
946943

947-
- Learn our quality [benchmark](https://techcommunity.microsoft.com/t5/ai-cognitive-services-blog/speech-service-update-hierarchical-transformer-for-pronunciation/ba-p/3740866)
944+
- Learn our quality [benchmark](https://aka.ms/pronunciationassessment/techblog)
948945
- Try out [pronunciation assessment in Speech Studio](pronunciation-assessment-tool.md)
949-
- Check out easy-to-deploy Pronunciation Assessment [demo](https://github.com/Azure-Samples/Cognitive-Speech-TTS/tree/master/PronunciationAssessment/BrowserJS) and watch the [video tutorial](https://www.youtube.com/watch?v=zFlwm7N4Awc) of pronunciation assessment.
946+
- Check out easy-to-deploy Pronunciation Assessment [demo](https://github.com/Azure-Samples/Cognitive-Speech-TTS/tree/master/PronunciationAssessment/BrowserJS) and watch the [video demo](https://www.youtube.com/watch?v=NQi4mBiNNTE) of pronunciation assessment.

0 commit comments

Comments
 (0)