I get an error when trying to use this code. I want to read back the digits I take in. How do I use say as to read back a number just taken in from a promot?
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<field name="id" type="digits">
<prompt>
Please say or enter your customer identification number.
</prompt>
<filled>
You entered <say-as type="acronym"> <value expr="id"/> </say-as>
<!-- transfer to premium support -->
</filled>
</field>
</form>
</vxml>
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
say-as not working
This is the error
This document is not valid VoiceXML!
Element say-as is not declared in filled list of possible children in Entity, line: 12
Element say-as is not declared in filled list of possible children in Entity, line: 12
IVR code to work with <say-as> tag
Hi,
The reason you are getting this IVR error is because the <say-as> tag is not a child IVR tag of the <filled>tag.
The parent IVR tags for the <say-as> tag are:
<audio>, <emphasis>, <enumerate>, <foreach>, <p>, <paragraph>, <prompt>, <prosody>, <s>, <sentence>, <speak>, <voice>
You would have have to place your <say-as> tag within one of these parent tags to not get this IVR error.
The following IVR code should work with the <say-as> tag:
Hope this helps.
Regards,
Plum Support
The reason you are getting this IVR error is because the <say-as> tag is not a child IVR tag of the <filled>tag.
The parent IVR tags for the <say-as> tag are:
<audio>, <emphasis>, <enumerate>, <foreach>, <p>, <paragraph>, <prompt>, <prosody>, <s>, <sentence>, <speak>, <voice>
You would have have to place your <say-as> tag within one of these parent tags to not get this IVR error.
The following IVR code should work with the <say-as> tag:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<block>
<prompt>
Acronym is spelled:
<say-as type="acronym">
acronym
</say-as>
</prompt>
</block>
</form>
</vxml>
Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 3:47 pm, edited 4 times in total.
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com
slight modification of IVR code to fix <say-as> tag
Hi Peter,
We've slightly modified your IVR tag, <say-as>, in your IVR code and have tested it successfully:
Regards,
Plum Support
We've slightly modified your IVR tag, <say-as>, in your IVR code and have tested it successfully:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<field name="id" type="digits">
<prompt>
Please say or enter your customer identification number.
</prompt>
<filled>
You entered <prompt> <say-as type="acronym"> <value expr="id"/> </say-as> </prompt>
<!-- transfer to premium support -->
</filled>
</field>
</form>
</vxml>
Plum Support
Last edited by support on Wed Feb 24, 2010 3:48 pm, edited 4 times in total.
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com