SpeechRecognitionEngine.RecognizerInfo Vlastnost

Definice

Získá informace o aktuální instanci SpeechRecognitionEngine.

public:
 property System::Speech::Recognition::RecognizerInfo ^ RecognizerInfo { System::Speech::Recognition::RecognizerInfo ^ get(); };
public System.Speech.Recognition.RecognizerInfo RecognizerInfo { get; }
member this.RecognizerInfo : System.Speech.Recognition.RecognizerInfo
Public ReadOnly Property RecognizerInfo As RecognizerInfo

Hodnota vlastnosti

Informace o aktuálním rozpoznávání řeči

Příklady

Následující příklad získá částečný seznam dat pro aktuální modul pro rozpoznávání řeči v procesu. Další informace najdete na webu 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();
    }
  }
}

Poznámky

Pokud chcete získat informace o všech nainstalovaných rozpoznávání řeči pro aktuální systém, použijte metodu InstalledRecognizers .

Platí pro

Viz také