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 语音识别所使用的语音识别器的相关信息。