Share via


Using DTMF

  Microsoft Speech Technologies Homepage

(Dialog Speech Control Sample)

This sample is an application that is driven entirely by keypresses sending dual tone multi-frequency (DTMF) input. The application provides information on the rates for three service packages for each of three types of services. The application first prompts the user to select one of three types of service.

Welcome. To hear rates for Internet service, press 1; to hear rates for cable TV service press 2; to hear rates for telephone service, press 3. To hear this prompt again, press star.

After the user selects a service type, the application plays one of three prompts requesting the user to select a service package. The second-level prompts are shown below.

To hear rates for Internet service using a dial-up connection press 1, to hear rates for Internet service using a cable modem connection press 2, to hear rates for Internet service using a DSL connection press 3. To hear this prompt again press star.

To hear rates for basic cable TV service press 1, to hear rates for premium cable TV service press 2, to hear rates for our sports package cable TV service press 3. To hear this prompt again press star.

To hear rates for basic telephone service press 1, to hear rates for domestic long distance phone service press 2, to hear rates for international long distance phone service press 3. To hear this prompt again press star.

After the user selects a service package, the application informs the user of the rate for the selected service type and package. The format for this prompt is shown below.

The rates for service_type service_package service is dollar_amount per month. Thank you.

  • Using DTMF menu selection.
  • Rejecting DTMF keys that do not match with the options available.
  • Handling silence.
  • Repeating prompts using the * key.

Running the Sample

  1. Open the sample.
  2. When prompted to select a service type, press either 1, 2, or 3 on the Speech Debugging Console DTMF keypad that appears on the screen.
  3. When prompted to select a package for the service that has been selected, press either 1, 2, or 3 on the Speech Debugging Console DTMF keypad.

Remarks

  • Note that in the case of the first prompt the word "welcome" is omitted in the repeated version.
  • If the user does not respond to the prompt to select the service type or the service package within 3 seconds, or if the user presses an invalid key, the application plays an apology and repeats the prompt.

See Also

Dialog Speech Controls Overview | DTMF Class