SpeechRecognitionResult.TextConfidence property
The TextConfidence property specifies the estimated accuracy of the current SpeechRecognitionResult.
Type: Bing.Speech.SpeechRecognitionConfidence
An enumeration value that specifies the estimated accuracy of the current SpeechRecognitionResult.
The speech recognizer uses predefined grammars, which represent common linguistic patterns, to interpret likely input from the user. It then rates each possible interpretation by its likelihood of being correct, and uses that value to set the TextConfidence property. For more information, see the SpeechRecognitionConfidence enumeration documentation.
Example
The following example starts speech recognition, and then send an assessment of TextConfidence to a TextBlock before sending the final result text to an adjacent TextBlock.
Requirements
Minimum Supported Client | Windows 8 |
Required Extensions | Bing.Speech |
Namespace |
When collecting speech results or intermediate results in a JavaScript application, quiet or unclear speech may cause the recognizeSpeechToTextAsync() method to return an error object in place of the result text. To maintain smooth program flow, verify that the result text is a string before attempting to read it. For more information, see How to: Add the Bing Speech Recognition Control to an application with a custom UI.