Freigeben über


Configuring the Contacts Application Settings

  Microsoft Speech Technologies Homepage

The Contacts reference application that is included in the Microsoft Speech Application SDK Version 1.1 (SASDK) provides a number of configuration options for developers to use as a model for developing their own contacts applications.

Configuration settings are stored in an XML file, labeled Web.config that is located inside the Contacts directory:

C:\Program Files\Microsoft Speech Application SDK 1.1\Applications\Contacts

To configure the Contacts application

  1. Open the Web.config file in a file editor.
  2. Refer to the following table and select a modification in the left column.
  3. Modify the Web.config file as indicated in the corresponding right column.
  4. Save the Web.config file.
  5. Build and run the application to test the new settings.
In order to In the Web.config file, do this
Specify the set of contact or information services that is active during runtime. A minimum of one active service is required. Add or remove the service element (and all of its contents) that corresponds to the affected service. For example, to deactivate the postal address service, remove (or for temporary deactivation, comment out) the service element with an id attribute set to PostalAddress.
Specify the operator telephone number. Set the value of the number attribute of the operatorTransfer element to the preferred operator telephone number.
Specify which piece of data about a contact the application uses to resolve name collisions. Set the value of the keyDataField attribute of the nameDisambiguation element to the name of the data field that the application should use.
Specify the number of identical names at or above which the system transfers to an operator. Set the value of the threshold attribute of the nameDisambiguation element to the preferred threshold number. For example, if the number is set to ten, and if the user requests information for a contact whose name is identical with nine other contacts, the application will not prompt the user to identify which contact's data to access, but will transfer to an operator.
Specify the confidence level at or below which the application initiates the Confirm Name QA. Set the value attribute of the recoSetting element, whose id is ConfirmThreshold, to the preferred confidence level value. For example, the value could be set to 0.4. If the recognition confidence level for a contact's name is above 0.4, the application will not initiate the Confirm Name QA, but if the recognition confidence level for the contact's name is equal to or below 0.4, the application initiates the Confirm Name QA.
Send all e-mails to a fixed address for testing. Set the value of the hardWiredSendTo attribute of the debug element to the test account's e-mail address, and then uncomment the line containing the debug element.