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
The previous examples only get the recognized text from the `result.text` property. To handle errors and other responses, you need to write some code to handle the result. The following code evaluates the [`result.reason`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.resultreason) property and:
73
+
The previous examples only get the recognized text from the `speech_recognition_result.text` property. To handle errors and other responses, you need to write some code to handle the result. The following code evaluates the [`speech_recognition_result.reason`](/python/api/azure-cognitiveservices-speech/azure.cognitiveservices.speech.resultreason) property and:
74
74
75
75
* Prints the recognition result: `speechsdk.ResultReason.RecognizedSpeech`.
76
76
* If there's no recognition match, it informs the user: `speechsdk.ResultReason.NoMatch`.
77
77
* If an error is encountered, it prints the error message: `speechsdk.ResultReason.Canceled`.
0 commit comments