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

RecognizerInfo

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

Příklady

Následující příklad načte částečný seznam dat pro aktuální modul pro rozpoznávání řeči v procesu. Další informace naleznete v tématu 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

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

Platí pro

Viz také