SSML on composer prompt

Hi guys,
I’m trying to make this work:


<prompt bargein="true"  gvp:langexpr="AppState.APP_LANGUAGE">
				<say-as interpret-as="spell" format="alphanumeric"><value expr="AppState.In_CPF" /></say-as> 
    		</prompt>

If I put this on the vxml file directly it does work, but I need to make this on Composer, if not each time the dev guys compile will be lost…

I tried to add this to the Prompt tab as


<say-as interpret-as="spell" format="alphanumeric"> AppState.In_CPF</say-as>

but this makes this output:


<prompt bargein="true"  gvp:langexpr="AppState.APP_LANGUAGE">
				<value expr="&lt;say-as interpret-as=&quot;spell&quot; format=&quot;alphanumeric&quot;&gt; AppState.In_CPF&lt;/say-as&gt;" />
    		</prompt>

which gives me a semantic error…

The GVP Composer Deployment guide states:

SSML tags can be used in prompts

But how…a support ticket (old one 8.0) advises to call VXML externally from subdialog but this would be too tedious as would have to maintain also those files…

Any idea how to achieve this??

Thanks!

You can have a single (i.e. re-usable) VoiceXML subdialog taking 2 parameters (valueToPlay and language):

spell.vxml:

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




	<block>
		<prompt bargein="true" gvp:langexpr="language">
			<say-as interpret-as="spell" format="alphanumeric">
				<value expr="valueToPlay" />
			</say-as>
		</prompt>
		<return />
	</block>
</form>

Use a subdialog node (type=URL, uri=spell.vxml) to invoke it and pass language=AppState.APP_LANGUAGE and valueToPlay=. Obviously, it’s not a regular composer prompt, so you won’t be able to use it from a menu node. However prompt queuing should allow use to play it just before the menu prompt.

Note: I haven’t tested it.

1 Like

Thanks :slight_smile: Will test this and let you know

1 Like

Worked like a charm :slight_smile:
Thanks!

1 Like