Share via


Global Application Settings

  Microsoft Speech Technologies Homepage

There are four global application variables that can be used to affect the run-time behavior of the application. These variables are evaluated at render time. They are:

  • errorpage
    Specifies a URI to a default error page to be loaded in the case of Speech Platform errors and exceptions.
  • EnableConditionalLogging flag
    Enables or disables conditional logging, which prevents the Speech Platform from logging sensitive data such as credit card and Social Security numbers. If true, conditional logging is enabled, and sensitive data is protected. If false, conditional logging is disabled, and all data fields are logged. The default value is true. See SemanticItem.SensitiveData.
  • CallManagerSmexParam
    Specifies the HTML-encoded param for the default telephony interface manager Smex tag.
  • SpeechControlSettings (for all controls)
    Specifies the default property settings for Dialog Speech Controls in the application.
    All class and property names within the speechControlSettings element must be camelcased, as in the example in this topic.

The <appSettings> tag must be placed one level inside the <configuration> tag within the Web.config file.

Example

This CallManagerSmexParam is HTML-encoded in the following example:

<salt:param><salt:clsid>{ADC22E8D-4BB3-4c1d-9B8E-5EDD9BC5B976}</salt:clsid></salt:param>

<configuration>
    
    <appSettings>
        <add key="errorpage" value="myerrorPage" />
        <add key="EnableConditionalLogging" value="True" />
        <add key="CallManagerSmexParam" value="&lt;salt:param&gt;&lt;salt:clsid&gt;{ADC22E8D-4BB3-4c1d-9B8E-5EDD9BC5B976}&lt;/salt:clsid&gt;&lt;/salt:param&gt;" />
    </appSettings>

    <speechControlSettings>
      <speechControlSettingsItem id="globalStyle">
        <qa>
          <prompt>
            <promptDatabases>
              <promptDatabase source="Prompts/SpeechIndexPrompts.prompts" />
            </promptDatabases>
          </prompt>
        </qa>
        <command>
          <prompt>
            <promptDatabases>
              <promptDatabase source="Prompts/SpeechIndexPrompts.prompts" />
            </promptDatabases>
          </prompt>
        </command>
        <customValidator>
          <prompt>
            <promptDatabases>
              <promptDatabase source="Prompts/SpeechIndexPrompts.prompts" />
            </promptDatabases>
          </prompt>
        </customValidator>
        <compareValidator>
          <prompt>
            <promptDatabases>
              <promptDatabase source="Prompts/SpeechIndexPrompts.prompts" />
            </promptDatabases>
          </prompt>
        </compareValidator>
      </speechControlSettingsItem>
    </speechControlSettings>

</configuration>