SpeechRecognitionResult.Text property

Bing
 

The Text property contains the recognized text of a speech recognition session.

public string Text { get; }

Type: System.String

The recognized text.

When the SpeechRecognizer.RecognizeSpeechToTextAsync() method returns a SpeechRecognitionResult object, the Text property of the returned result represents the speech recognizer's best match for speech input by the user. Other possible interpretations are stored as additional SpeechRecognitionResult objects to be returned by the SpeechRecognitionResult.GetAlternates(int) method.

Example

The following example prints the result of a speech recognition session to a TextBox named ResultText.

No code example is currently available or this language may not be supported.
System_CAPS_cautionCaution

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 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.

Requirements

Minimum Supported Client

Windows 8

Required Extensions

Bing.Speech

Namespace

Bing.Speech

Show: