Share via


QA Client Object

  Microsoft Speech Technologies Homepage
class QA
{
    public bool   IsInShortTimeoutConfirmation();
    public string ID        { get; }
    public bool   HasPlayed { get; set; }
    public array  History   { get; }
}

Methods

IsInShortTimeoutConfirmation

Determines if the QA object is in short time-out confirmation mode.

When defining QA Speech Controls that can perform either short time-out confirmation or normal confirmation, the author may want to use different prompts for each confirmation mode. Client-side code routines such as the PromptSelectFunction can use this method to determine when short time-out confirmation is being performed.

IsInShortTimeoutConfirmation()

Parameters

None.

Return Value

True if the QA object is in short time-out confirmation mode; False if otherwise.

Properties

  • ID
    A string that uniquely identifies the control on the page. It should be identical to the server-side value.
  • HasPlayed
    The HasPlayed property indicates if the prompt has already been played when the server-side PlayOnce property has been set to True. Using the HasPlayed property, the author can determine if the prompt has played and then optionally reset the state of the prompt, making it a candidate for activation during subsequent checks by RunSpeech.
  • History
    The Command/Exception History of the QA. This property is null unless the QA being accessed is the active QA. For more information, see Command/Exception History.

See Also

QA Class | QA Constructor | QA Members | QA Properties | QA Methods | QA Events