VoiceXML with Visual Studio

Every so often I'm surprised by the incredible flexibility built into Visual Studio 2005.

I've been writing a lot of VoiceXML lately and I was really missing the intellisense that I've become so used to. On a whim I tried opening a VoiceXML document in Visual Studio and much to my surprise it worked!

It turns out that Visual Studio is capable of understanding the syntax of a document based on it's DOCTYPE. In my case it saw <!DOCTYPE vxml PUBLIC "-//W3C//DTD VOICEXML 2.1//EN" "http://www.w3.org/TR/voicexml21/vxml.dtd"> and was able to automatically give me basic intellisense and syntax checking for VoiceXML version 2.1.

As an example, create a new XML document and insert the following:

<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE vxml PUBLIC "-//W3C//DTD VOICEXML 2.1//EN" "http://www.w3.org/TR/voicexml21/vxml.dtd">

<vxml version="2.1">
</vxml>

You'll notice that the last element (</vxml>) gives you a warning. Hovering over it tells you not only that your missing an element but what the valid elements might be!

This is all very cool if you ask me...

Posted: Thursday, February 22, 2007 1:06 AM by MarcLaFleur with 12 comment(s)

Comments

# re: VoiceXML with Visual Studio @Thursday, December 27, 2007 7:28 AM

hi

  this ranganathan how to get the real time voice from the web site using Voice XML any chance

thank u very much

ranganathan

# re: VoiceXML with Visual Studio @Thursday, January 10, 2008 5:49 PM

How did VMXL to appear in the HTML Source Editing Dropdown list?

Louis Fischer

# re: VoiceXML with Visual Studio @Thursday, January 10, 2008 10:24 PM

It doesn't show up in the drop down list, the editor is simply aware of the document type.

That said, if you are using Visual Studio 2005 you can download and install the developer components for Speech Server 2007. This will give you fully integrated support for VoiceXML v2.1. Unfortunately the SDK doesn't work at all with Visual Studio 2008.

MarcLaFleur

# re: VoiceXML with Visual Studio @Friday, January 11, 2008 10:28 AM

Think you. I will download the Microsoft Office Communications Server 2007 Speech Server Developer Edition and give it a try.

Louis Fischer

# re: VoiceXML with Visual Studio @Sunday, February 10, 2008 3:00 AM

sir,

has i m doing my final year project on VOICE ENABLEMENT.I m not getting the latest version of vxml.Sir please help me out for my project

swetha gujjula

# re: VoiceXML with Visual Studio @Sunday, February 10, 2008 5:22 PM

I'm afraid I don't understand your question. Could you please give some more detail?

Marc LaFleur

# re: VoiceXML with Visual Studio @Tuesday, June 24, 2008 1:55 PM

Marc,

I could make the VS 2005 recognize the VXML sintax and i'm able to use the IntelliSense too. But I also need the XML Editor to reconize the Server Tags <% %>. Is there any way to do this. This is a sample of one of my files:

<!--<%@ language="c#" CodeFile="main.vxml.cs" AutoEventWireup="false" Inherits="NutritionInformationIVR_main" %>-->

<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE vxml PUBLIC "-//W3C//DTD VOICEXML 2.1//EN" "www.w3.org/.../vxml.dtd">

<vxml version="2.1">

<meta http-equiv="Expires" content="0"/>

<meta http-equiv="Pragma" content="no-cache"/>

<meta http-equiv="Cache-Control" content="no-cache"/>

<property name="documentmaxage" value="0"/>

<property name="documentmaxstale" value="0"/>

<property name="timeout" value="5s"/>

<property name="interdigittimeout" value="5s"/>

<assign name="m_ANI" expr="&quot;<% Response.Write(Request.QueryString["ANI"]); %>&quot;"/>

</vxml>

Diego

# re: VoiceXML with Visual Studio @Friday, June 27, 2008 7:52 PM

Diego,

I am assuming you and I are in the same boat.

The problem is that you need server-side execution of the page. Which means it can't be a ".XML" extension (at least no without adding an ISAPI handler for that extenaion and it's verbs).

What you need is to serve it up as an ASPX page that returns a response type of XML. The problem that I am having is that the aspx page doesn't grab the DTD or dosn't parse it or whatever. So it defaults to intellisense for XHTML 1.0 Transitional.

Anyone know how to get intellisense for VS2005 when the file extension is ASPX?

Chris

# re: VoiceXML with Visual Studio @Wednesday, October 29, 2008 6:08 AM

Hi guys,

     I'm new to this VXML technology. I have developed my first VXML appln. with VS2005. What i did is nothing but written all the VXML tags in the aspx pages and written the required validations in the aspx.cs pages. It works fine with out any issues.

     The thing which you have to mind before writing your VXML in aspx is you have to remove all the html tags. If you deployed the application and access your aspx page it will work.If you guys have any queries related how to implement VXML in VS2005 please mail me to elango.p53@gmail.com

Elango

# re: VoiceXML with Visual Studio @Wednesday, November 12, 2008 2:21 AM

Hi guys,

 i am new to speech server ..i want to develop vxml 2.1    

applicaions in Microsoft office communication sever...i installed ocs.but i am not getting wher to start...

Raj

# re: VoiceXML with Visual Studio @Tuesday, March 02, 2010 9:48 AM

Hi Marc,

I just got a task to write a dynamic vxml application. I have several questions:

1. Can I use IIS7 to serve vxml pages along with their contents? (voice, video)

Do i have to setup something on the IIS7?

2. How can I read the DTMF on the application?

Thanks,

newbie

newbie

# re: VoiceXML with Visual Studio @Thursday, March 25, 2010 3:19 AM

Hello everyone. Nothing has a stronger influence psychologically on their environment and especially on their children than the unlived life of the parent. Help me! Please help find sites for: Day trade stock picks. I found only this - <a href="www.justiceplanbook.com/.../StockTrading">stock trading company</a>. Stock trading, bonds in karachistrategies are typically grown to wonder a regional day thing to exchanges in the considering time. Stock trading, a personal market to the feedforward price business is developed if there are any stock events on the loss which would need important if the growth argued. Thank ;-) Merv from Yemen.

Merv

Leave a Comment

(required) 
(required) 
(optional)
(required)