RecognizerInfo Property

SpeechRecognizer.RecognizerInfo Property

 

Gets information about the shared speech recognizer.

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

public RecognizerInfo RecognizerInfo { get; }

Property Value

Type: System.Speech.Recognition.RecognizerInfo

Information about the shared speech recognizer.

This property returns information about the speech recognizer in use by Windows Speech Recognition.

The following example sends information about the shared recognizer to the console.


using System;
using System.Speech.Recognition;

namespace SharedRecognizer
{
  class Program
  {
    static void Main(string[] args)
    {
      using (SpeechRecognizer recognizer = new SpeechRecognizer())
      {
        Console.WriteLine("Recognizer information for the shared recognizer:");
        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:
© 2016 Microsoft