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
In Visual Studio 2005, click New Web Site on the File menu.
In the New Web Site dialog box, select VoiceXMLSpeech Application.
In the Location list, select HTTP.
In the Language list, select Visual C#.
Change the application path to http://localhost/HelloWorld, and then click OK.
In the Speech VoiceXML Application Project Wizard, click OK.
Visual Studio 2005 creates the elements of your project.
To add VoiceXML sample code
In Visual Studio 2005, click Code Definition Window on the View menu.
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>
Set VoiceXML 2.0 as the validation schema.
For more information, see How to: Select Validation Schemas for HTML Editing in Visual Web Developer.
Save the solution.
Run the Application
To run the VoiceXML application
Build the solution.
On the Debug menu, click Windows, and then click the Voice Response Debugging Window.
In the Voice Response Debugging Window dialog box, click Call.
See Also
Other Resources
Create VoiceXML Application Projects
Sample VoiceXML Applications