Partilhar via


Settings Property

  Microsoft Speech Technologies Homepage

Gets or sets the ID of a SpeechControlSettingsItem that initializes property values of the control. Read/write.

Usage

ASP.NET markup: <speech:SpeechControlSettingsItem Settings="..." />
Get value: String = SpeechControlSettingsItem.Settings;
Set value: SpeechControlSettingsItem.Settings = String;
Data type: String
Required: No

Remarks

Application authors can create a SpeechControlSettingsItem control for each application modality that requires a different set of Speech Controls properties. The Settings property specifies the SpeechControlSettingsItem control to be used.

Example

<form id="Form1" method="post" runat="server">
  ...
  <speech:SpeechControlSettings ID="AllSettings" runat="server">
    <Items>
      <speech:SpeechControlSettingsItem ID="QA_MessageOnly" runat="server">
        <QA PlayOnce="True" AllowCommands="False"></QA>
      </speech:SpeechControlSettingsItem>

      <speech:SpeechControlSettingsItem ID="QA_Not_MessageOnly" runat="server">
        <QA PlayOnce="False" AllowCommands="True"></QA>
      </speech:SpeechControlSettingsItem>

      <speech:SpeechControlSettingsItem ID="Settings1" runat="server">
        <QA
          Settings="QA_Not_MessageOnly"
          FirstInitialTimeout="0"
          XPathAcceptConfirms="SML/Yes"
          XPathDenyConfirms="SML/No"
          AcceptRejectThreshold="0.6"
          DenyRejectThreshold="0.5." >
        </QA>
      </speech:SpeechControlSettingsItem>

    </Items>
  </speech:SpeechControlSettings>
  ...
  <speech:QA Settings="Settings1" runat="server">
    <!-- QA contents --!>
  </speech:QA>
  ...
</form>

See Also

SpeechControlSettingsItem Class | SpeechControlSettingsItem Constructor | SpeechControlSettingsItem Members | SpeechControlSettingsItem Properties | SpeechControlSettingsItem Methods | SpeechControlSettingsItem Events | SpeechControlSettingsItem Remarks