Page 1 of 1

say-as in prompt

Posted: Tue Oct 24, 2006 7:48 pm
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?

simplified valid IVR script needed to determine problem

Posted: Thu Oct 26, 2006 1:40 pm
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