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 in prompt

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
gmyers31
Posts: 1
Joined: Tue Oct 24, 2006 7:34 pm

say-as in prompt

Post by gmyers31 »

Works:

Code: Select all

<prompt>
	<voice gender="female" age="22">
		You entered an I.D. of: 
		<value expr="ID"/>
		and a pin of: 
		<value expr="Pin"/>
		If correct press 1.  If not, press 2.
	</voice>
</prompt>
Throws Error:

Code: Select all

<prompt>
	<voice gender="female" age="22">
		You entered an I.D. of: 
		<say-as type="acronym">
			<value expr="ID"/>
		</say-as>
		and a pin of: 
		<say-as type="acronym">
			<value expr="Pin"/>
		</say-as>
		If correct press 1.  If not, press 2.
	</voice>
</prompt>
DocumentParser::FetchDocument -
Parse error in file, line 98, column 219 -
Element 'say-as' is not valid for content model:
'(#PCDATA|audio|enumerate|value|assign|clear|data|disconnect|exit|foreach|goto|if|log|prompt|reprompt|return|script|submit|throw|var)*'
With Say-as in that situation it actually throws an error How should I be putting say-as into this setting?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

simplified valid IVR script needed to determine problem

Post by support »

Hello,

Given the amount of information sent it's difficult to determine what exactly has gone wrong. Can you provide a complete VoiceXML script? The IVR error you are seeing doesn't make sense given your IVR code. Providing a simplified valid VoiceXML script as the example would be best.

The following IVR script worked fine for us:

Code: Select all

<?xml version="1.0" ?>
<vxml version="2.0">
 <form id="rec">
  <block>
    <var name="ID" expr="'1234'"/>
    <var name="Pin" expr="'1234'"/>
    <prompt>
      <voice gender="female" age="22">
        You entered an I.D. of:
        <say-as type="acronym">
          <value expr="ID"/>
        </say-as>
        and a pin of:
        <say-as type="acronym">
          <value expr="Pin"/>
        </say-as>
        If correct press 1.  If not, press 2.
      </voice>
    </prompt> 
  </block>
 </form>
 </vxml>
Regards,
Plum Support

Post Reply