AdditionalInfo Property

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Gets additional information about a SpeechRecognitionEngine instance.

Namespace:  Microsoft.Speech.Recognition
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

Visual Basic (Declaration)
Public ReadOnly Property AdditionalInfo As IDictionary(Of String, String)
	Get
Visual Basic (Usage)
Dim instance As RecognizerInfo
Dim value As IDictionary(Of String, String)

value = instance.AdditionalInfo
C#
public IDictionary<string, string> AdditionalInfo { get; }

Property Value

Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, String>)>)>

Returns an instance of IDictionary containing information about the configuration of a SpeechRecognitionEngine.

Examples

The following example implements a button-click that displays all the information in a RecognizerInfo object in a MessageBox.

The key/value pairs contained in the IDictionary instance returned by AdditionalInfo are concatenated into a text table.

C# Copy imageCopy Code
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));
}

See Also