Page 1 of 1

<say-as> tag in <choice> tage is not working

Posted: Fri Sep 19, 2008 5:21 am
by vikeshpunjabi
I am trying to iterate incoming data from server, i.e. appointment dates and I'm using code like following

Example:

<menu id="testdatetime">
<prompt>
choose date time from following.
</prompt>
<choice next="#date1" dtmf="1">
<say-as interpret-as="date" format="mdy">09/23/2008<say-as>
</choice>

<choice next="#date2" dtmf="2">
<say-as interpret-as="date" format="mdy">09/23/2008<say-as>
</choice>
</menu>

I know, <say-as> is not child tag of <choice> in Voice xml 2.0, but it is supported in voice xml 2.1. problem is that, my application will be hosted on Plum which supports only voicexml 2.0.

Can any one tell me another way do that.

IVR platform supports VoiceXML 2.1

Posted: Fri Sep 19, 2008 9:56 am
by support
Hi,

Our IVR platform does indeed support VoiceXML 2.1.

However, we cannot find anything in the VoiceXML 2.1 specification that says that the IVR tag, <say-as> , can be a child tag of the IVR tag, <choice>. Can you provide us with further information on where you have seen that the <say-as> tag should be a child tag of the <choice> tag for VoiceXML 2.1?

As a possible solution, you could try the following IVR example:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
<menu id="choosedate" dtmf="true">
	<prompt>
		Choose a date from the following.
		<enumerate>
			For <say-as interpret-as="date" format="mdy"><value expr="_prompt"/></say-as>, press <value expr="_dtmf"/>.
		</enumerate>
	</prompt>
	<choice next="http://nonexistent.domain.com/date1.vxml" dtmf="1">
		September 23 2008
	</choice>

	<choice next="http://nonexistent.domain.com/date2.vxml" dtmf="2">
		September 24 2008
	</choice>
</menu>
</vxml>
Regards,
Plum Support