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
else if (result->Reason == ResultReason::RecognizedSpeech)
102
102
{
@@ -153,86 +153,11 @@ Speak into your microphone when prompted. What you speak should be output as tex
153
153
Say something ...
154
154
RECOGNIZED: Text=Go ahead and delete the e-mail.
155
155
Intent Id: Delete.
156
-
Language Understanding JSON: {"kind":"ConversationResult","result":{"query":"go ahead and delete the email","prediction":{"topIntent":"Delete","projectKind":"Conversation","intents":[{"category":"Delete","confidenceScore":0.95413816},{"category":"Cancel","confidenceScore":0.8985081},{"category":"SendEmail","confidenceScore":0.76236105},{"category":"Confirm","confidenceScore":0.7585944},{"category":"QueryLastText","confidenceScore":0.7434454},{"category":"CheckMessages","confidenceScore":0.70770377},{"category":"SearchMessages","confidenceScore":0.7021245},{"category":"ReadAloud","confidenceScore":0.6168782},{"category":"AddMore","confidenceScore":0.6116944},{"category":"Reply","confidenceScore":0.6059992},{"category":"ShowNext","confidenceScore":0.5359252},{"category":"AddFlag","confidenceScore":0.504695},{"category":"ShowPrevious","confidenceScore":0.49446106},{"category":"Forward","confidenceScore":0.41094807},{"category":"None","confidenceScore":0.34945187}],"entities":[]}}}.
156
+
Language Understanding JSON:
157
157
```
158
158
159
-
The intents are returned in the probability order of most likely to least likely. Here's a formatted version of the JSON output where the `topIntent` is `Delete` with a confidence score of 0.95413816 (95.41%):
160
-
161
-
```json
162
-
{
163
-
"kind": "ConversationResult",
164
-
"result": {
165
-
"query": "go ahead and delete the email",
166
-
"prediction": {
167
-
"topIntent": "Delete",
168
-
"projectKind": "Conversation",
169
-
"intents": [
170
-
{
171
-
"category": "Delete",
172
-
"confidenceScore": 0.95413816
173
-
},
174
-
{
175
-
"category": "Cancel",
176
-
"confidenceScore": 0.8985081
177
-
},
178
-
{
179
-
"category": "SendEmail",
180
-
"confidenceScore": 0.76236105
181
-
},
182
-
{
183
-
"category": "Confirm",
184
-
"confidenceScore": 0.7585944
185
-
},
186
-
{
187
-
"category": "QueryLastText",
188
-
"confidenceScore": 0.7434454
189
-
},
190
-
{
191
-
"category": "CheckMessages",
192
-
"confidenceScore": 0.70770377
193
-
},
194
-
{
195
-
"category": "SearchMessages",
196
-
"confidenceScore": 0.7021245
197
-
},
198
-
{
199
-
"category": "ReadAloud",
200
-
"confidenceScore": 0.6168782
201
-
},
202
-
{
203
-
"category": "AddMore",
204
-
"confidenceScore": 0.6116944
205
-
},
206
-
{
207
-
"category": "Reply",
208
-
"confidenceScore": 0.6059992
209
-
},
210
-
{
211
-
"category": "ShowNext",
212
-
"confidenceScore": 0.5359252
213
-
},
214
-
{
215
-
"category": "AddFlag",
216
-
"confidenceScore": 0.504695
217
-
},
218
-
{
219
-
"category": "ShowPrevious",
220
-
"confidenceScore": 0.49446106
221
-
},
222
-
{
223
-
"category": "Forward",
224
-
"confidenceScore": 0.41094807
225
-
},
226
-
{
227
-
"category": "None",
228
-
"confidenceScore": 0.34945187
229
-
}
230
-
],
231
-
"entities": []
232
-
}
233
-
}
234
-
}
235
-
```
159
+
> [NOTE]
160
+
> There is a known issue with the LanguageUnderstandingServiceResponse_JsonResult property when used with CLU in the Speech SDK version 1.25. You can get detailed JSON output in a future release. Via JSON, the intents are returned in the probability order of most likely to least likely. For example, the `topIntent` might be `Delete` with a confidence score of 0.95413816 (95.41%). The second most likely intent might be `Cancel` with a confidence score of 0.8985081 (89.85%).
236
161
237
162
## Remarks
238
163
Now that you've completed the quickstart, here are some additional considerations:
// The IntentService_DetailedResult property is a temporary preview and will be replaced
93
-
// by LanguageUnderstandingServiceResponse_JsonResult in a future release.
94
-
Console.WriteLine($" Language Understanding JSON: {recognitionResult.Properties.GetProperty("IntentService_DetailedResult")}.");
95
-
//Console.WriteLine($" Language Understanding JSON: {recognitionResult.Properties.GetProperty(PropertyId.LanguageUnderstandingServiceResponse_JsonResult)}.");
92
+
// There is a known issue with the LanguageUnderstandingServiceResponse_JsonResult
93
+
// property when used with CLU in the Speech SDK version 1.25.
94
+
// The following should return JSON in a future release.
95
+
Console.WriteLine($" Language Understanding JSON: {recognitionResult.Properties.GetProperty(PropertyId.LanguageUnderstandingServiceResponse_JsonResult)}.");
96
96
}
97
97
else if (recognitionResult.Reason == ResultReason.RecognizedSpeech)
98
98
{
@@ -138,86 +138,11 @@ Speak into your microphone when prompted. What you speak should be output as tex
138
138
Say something ...
139
139
RECOGNIZED: Text=Go ahead and delete the e-mail.
140
140
Intent Id: Delete.
141
-
Language Understanding JSON: {"kind":"ConversationResult","result":{"query":"go ahead and delete the email","prediction":{"topIntent":"Delete","projectKind":"Conversation","intents":[{"category":"Delete","confidenceScore":0.95413816},{"category":"Cancel","confidenceScore":0.8985081},{"category":"SendEmail","confidenceScore":0.76236105},{"category":"Confirm","confidenceScore":0.7585944},{"category":"QueryLastText","confidenceScore":0.7434454},{"category":"CheckMessages","confidenceScore":0.70770377},{"category":"SearchMessages","confidenceScore":0.7021245},{"category":"ReadAloud","confidenceScore":0.6168782},{"category":"AddMore","confidenceScore":0.6116944},{"category":"Reply","confidenceScore":0.6059992},{"category":"ShowNext","confidenceScore":0.5359252},{"category":"AddFlag","confidenceScore":0.504695},{"category":"ShowPrevious","confidenceScore":0.49446106},{"category":"Forward","confidenceScore":0.41094807},{"category":"None","confidenceScore":0.34945187}],"entities":[]}}}.
141
+
Language Understanding JSON:
142
142
```
143
143
144
-
The intents are returned in the probability order of most likely to least likely. Here's a formatted version of the JSON output where the `topIntent` is `Delete` with a confidence score of 0.95413816 (95.41%):
145
-
146
-
```json
147
-
{
148
-
"kind": "ConversationResult",
149
-
"result": {
150
-
"query": "go ahead and delete the email",
151
-
"prediction": {
152
-
"topIntent": "Delete",
153
-
"projectKind": "Conversation",
154
-
"intents": [
155
-
{
156
-
"category": "Delete",
157
-
"confidenceScore": 0.95413816
158
-
},
159
-
{
160
-
"category": "Cancel",
161
-
"confidenceScore": 0.8985081
162
-
},
163
-
{
164
-
"category": "SendEmail",
165
-
"confidenceScore": 0.76236105
166
-
},
167
-
{
168
-
"category": "Confirm",
169
-
"confidenceScore": 0.7585944
170
-
},
171
-
{
172
-
"category": "QueryLastText",
173
-
"confidenceScore": 0.7434454
174
-
},
175
-
{
176
-
"category": "CheckMessages",
177
-
"confidenceScore": 0.70770377
178
-
},
179
-
{
180
-
"category": "SearchMessages",
181
-
"confidenceScore": 0.7021245
182
-
},
183
-
{
184
-
"category": "ReadAloud",
185
-
"confidenceScore": 0.6168782
186
-
},
187
-
{
188
-
"category": "AddMore",
189
-
"confidenceScore": 0.6116944
190
-
},
191
-
{
192
-
"category": "Reply",
193
-
"confidenceScore": 0.6059992
194
-
},
195
-
{
196
-
"category": "ShowNext",
197
-
"confidenceScore": 0.5359252
198
-
},
199
-
{
200
-
"category": "AddFlag",
201
-
"confidenceScore": 0.504695
202
-
},
203
-
{
204
-
"category": "ShowPrevious",
205
-
"confidenceScore": 0.49446106
206
-
},
207
-
{
208
-
"category": "Forward",
209
-
"confidenceScore": 0.41094807
210
-
},
211
-
{
212
-
"category": "None",
213
-
"confidenceScore": 0.34945187
214
-
}
215
-
],
216
-
"entities": []
217
-
}
218
-
}
219
-
}
220
-
```
144
+
> [NOTE]
145
+
> There is a known issue with the LanguageUnderstandingServiceResponse_JsonResult property when used with CLU in the Speech SDK version 1.25. You can get detailed JSON output in a future release. Via JSON, the intents are returned in the probability order of most likely to least likely. For example, the `topIntent` might be `Delete` with a confidence score of 0.95413816 (95.41%). The second most likely intent might be `Cancel` with a confidence score of 0.8985081 (89.85%).
221
146
222
147
## Remarks
223
148
Now that you've completed the quickstart, here are some additional considerations:
0 commit comments