SpeechRecognitionEngine..::..RecognizerInfo Property |
SpeechRecognitionEngine Class Example See Also Send Feedback |
Gets information about the current instance of SpeechRecognitionEngine.
Namespace:
Microsoft.Speech.Recognition
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public ReadOnly Property RecognizerInfo As RecognizerInfo Get |
Visual Basic (Usage) |
---|
Dim instance As SpeechRecognitionEngine Dim value As RecognizerInfo value = instance.RecognizerInfo |
C# |
---|
public RecognizerInfo RecognizerInfo { get; } |
Property Value
Type: Microsoft.Speech.Recognition..::..RecognizerInfoInformation about the current speech recognizer.
Remarks
To get information about all of the installed speech recognizers for the current system, use the InstalledRecognizers()()()() method.
Examples
The following example gets a partial list of data for the current speech recognition engine. For more information, see RecognizerInfo.
Copy Code | |
---|---|
using System; using Microsoft.Speech.Recognition; namespace RecognitionEngine { class Program { static void Main(string[] args) { using (SpeechRecognitionEngine recognizer = new SpeechRecognitionEngine()) { Console.WriteLine("Information for the current speech recognition engine:"); Console.WriteLine(" Name: {0}", recognizer.RecognizerInfo.Name); Console.WriteLine(" Culture: {0}", recognizer.RecognizerInfo.Culture.ToString()); Console.WriteLine(" Description: {0}", recognizer.RecognizerInfo.Description); } Console.WriteLine(); Console.WriteLine("Press any key to exit..."); Console.ReadKey(); } } } |