Dela via


VoiceXML Application Tutorial

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Use this tutorial to learn how to run VoiceXML applications on Speech Server.

Goal of the Tutorial

You can now write VoiceXML 2.1-compliant applications within Microsoft Visual Studio 2005 and deploy those applications, or existing VoiceXML 2.1-compliant applications, in Speech Server. This tutorial demonstrates how to create and run a simple VoiceXML application in Speech Server.

Create the Application

Begin your application by opening Visual Studio 2005 and creating a project for the application.

To create a VoiceXML speech application

  1. In Visual Studio 2005, click New Web Site on the File menu.

  2. In the New Web Site dialog box, select VoiceXMLSpeech Application.

  3. In the Location list, select HTTP.

  4. In the Language list, select Visual C#.

  5. Change the application path to http://localhost/HelloWorld, and then click OK.

  6. In the Speech VoiceXML Application Project Wizard, click OK.

    Visual Studio 2005 creates the elements of your project.

To add VoiceXML sample code

  1. In Visual Studio 2005, click Code Definition Window on the View menu.

  2. In the code window, delete the XML text between the VXML elements, and then replace it with the following XML text.

    ?? <form>
    ???? <block>
    ?????? Hello World. This is my first telephone application.
    ???? </block>
    ?? </form>
    
  3. Set VoiceXML 2.0 as the validation schema.

    For more information, see How to: Select Validation Schemas for HTML Editing in Visual Web Developer.

  4. Save the solution.

Run the Application

To run the VoiceXML application

  1. Build the solution.

  2. On the Debug menu, click Windows, and then click the Voice Response Debugging Window.

  3. In the Voice Response Debugging Window dialog box, click Call.

See Also

Other Resources

Create VoiceXML Application Projects
Sample VoiceXML Applications