SpeechRecognizer.RecognizerInfo 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得共用語音辨識器的相關資訊。
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
屬性值
共用語音辨識器的相關資訊。
範例
下列範例會將共用辨識器的相關資訊傳送至主控台。
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();
}
}
}
備註
此屬性會傳回 Windows 語音辨識所使用的語音辨識器相關資訊。