共用方式為


SpeechRecognitionEngine.RecognizerInfo 屬性

定義

取得關於目前 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

屬性值

目前語音辨識器的相關資訊。

範例

下列範例會取得目前進程語音辨識引擎的部分資料清單。 如需詳細資訊,請參閱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();  
    }  
  }  
}  

備註

若要取得目前系統所有已安裝語音辨識器的相關資訊,請使用 InstalledRecognizers 方法。

適用於

另請參閱