Compartir a través de


SpeechRecognizerUx.Tips property

 

The Tips property contains a list of suggestions from the application developer, to be displayed at random in the Tips area of the SpeechRecognizerUx control.

Syntax

public string[] Tips { get; set }

Property Value

Type: System.String[]

An array of helpful suggestions for the user.

Remarks

The tips in the Tips array are cycled at random when the speech recognition session changes states, which corresponds to the SpeechRecognizer.AudioCaptureStateChanged event. For more information, see Working with Tips in the Bing Speech Recognition Control.

Tips should be short enough to fit in the available space on the SpeechRecognizerUx.

Example

The following example sets the Tips property in a SpeechRecognizerUx named SpeechControl.

SpeechControl.Tips = new string[]
{
    "To specify subcategories use 'class, subclass', for example, \"restaurants, seafood.\"",
    "If you are not getting accurate results, try using a headset microphone.",
    "Speak with a consistent volume.",
    "For help with the product, say \"Help me with...\" and then state the feature or error."
};
document.getElementById('SpeechControl').winControl.tips = new Array(
    "To specify subcategories use 'class, subclass', for example, \"restaurants, seafood.\"",
    "If you are not getting accurate results, try using a headset microphone.",
    "Speak with a consistent volume.",
    "For help with the product, say 'Help me with...' and then state the feature or error."
    );

Requirements

Minimum Supported Client

Windows 8

Required Extensions

Bing.Speech

Namespace

Bing.Speech.Xaml