Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SpeechRecognitionEngine.RecognizerInfo Property

Gets information about the current instance of SpeechRecognitionEngine.

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

Syntax

'Declaration
Public ReadOnly Property RecognizerInfo As RecognizerInfo
    Get
'Usage
Dim instance As SpeechRecognitionEngine
Dim value As RecognizerInfo

value = instance.RecognizerInfo
public RecognizerInfo RecognizerInfo { get; }

Property Value

Type: Microsoft.Speech.Recognition.RecognizerInfo
Information 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.

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

See Also

Reference

SpeechRecognitionEngine Class

SpeechRecognitionEngine Members

Microsoft.Speech.Recognition Namespace

SpeechRecognitionEngine(RecognizerInfo)

InstalledRecognizers()