Export (0) Print
Expand All

SpeechRecognizer.RecognizerInfo Property

Read-only property providing identifical and configuration information about the Windows Desktop Speech Technology recognition engine in use.

Namespace: System.Speech.Recognition
Assembly: System.Speech (in system.speech.dll)

public RecognizerInfo RecognizerInfo { get; }
/** @property */
public RecognizerInfo get_RecognizerInfo ()

public function get RecognizerInfo () : RecognizerInfo

Not applicable.

Property Value

Returns an instance of RecognizerInfo containing configuration information about the Windows Desktop Speech Technology recognition engine currently in use.

The information returned by RecognizerInfo includes a description, the supported culture and audio formats, and the recognition engine name.

For information about the current running state of the Windows Desktop Speech Technology recognition engine in use by an instance of SpeechRecognizer, use State.

The example below displays information obtained from RecognizerInfo in a MessageBox.

private void recognizerInfoButton_Click(object sender, EventArgs e) {
    RecognizerInfo info = _recognizer.RecognizerInfo;
    string AudioFormats = "";
    foreach (SpeechAudioFormatInfo fmt in info.SupportedAudioFormats) {
AudioFormats += String.Format("       {0}\n",
  fmt.EncodingFormat.ToString());
    }
    string AdditionalInfo = "";
    foreach (string key in info.AdditionalInfo.Keys) {
AdditionalInfo += String.Format("      {0}: {1}\n", key, info.AdditionalInfo[key]);
    }
    MessageBox.Show(String.Format(
"Name:                 {0 }\n" +
"Description:          {1} \n" +
"SupportedAudioFormats:\n" +
"{2} " +
"Culture:              {3} \n" +
"AdditionalInfo:       \n" +
" {4}\n",
info.Name.ToString(),
info.Description.ToString(),
AudioFormats,
info.Culture.ToString(),
   AdditionalInfo));
}

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft