SpeechRecognitionEngine::RecognizerInfo Property

 

Gets information about the current instance of SpeechRecognitionEngine.

Namespace:   System.Speech.Recognition
Assembly:  System.Speech (in System.Speech.dll)

public:
property RecognizerInfo^ RecognizerInfo {
	RecognizerInfo^ get();
}

Property Value

Type: System.Speech.Recognition::RecognizerInfo^

Information about the current speech recognizer.

To get information about all of the installed speech recognizers for the current system, use the InstalledRecognizers method.

The following example gets a partial list of data for the current in-process speech recognition engine. For more information, see RecognizerInfo.

using System;
using System.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();
    }
  }
}

.NET Framework
Available since 3.0
Return to top
Show: