Export (0) Print
Expand All

SpeechRecognitionEngine.RecognizerInfo Property

Gets information about the current instance of SpeechRecognitionEngine.

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

public RecognizerInfo RecognizerInfo { get; }

Property Value

Type: Microsoft.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 speech recognition engine. For more information, see RecognizerInfo.

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

Show:
© 2014 Microsoft