From Reference: http://www.plumvoice.com/docs/dev/voicexml:tags:say-as
it reads:
<?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>
The output of the above script would be:
Computer: Acronym is spelled: A-C-R-O-N-Y-M.
However when I run this on our hosted platform,
Computer: Acronym is spelled acroynm
Not spelled out, but as the word.
The sub notes from the reference read:
acronym: The acronym tag type works fine in the US, but does not work in the UK. If you are using AT&T Natural Voices and you want to spell out words or say back digits in the UK, you would have to use commas inside of a string such as "a, c, r, o, n, y, m" or "1, 2, 3, 4, 5".
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<block>
<prompt>
Acronym is spelled:
<say-as type="acronym">
a,c,r,o,n,y,m
</say-as>
</prompt>
</block>
</form>
</vxml>
The output of the above script is:
Computer: Acronym is spelled: A comma C comma R comma O comma N comma Y comma M.
It only seems to work if I replace the comma's with spaces.
Am I doing something wrong?
I am in the US, not UK. How can I tell if I have AT&T Natural Voices?
The goal is to have say-as spell.
Thanks,
Don
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 acroynm
Re: say-as acroynm
Hi Don,
Your onsite IVR system uses Nuance RealSpeak (with voices: Samantha and Paulina), so you wouldn't be able to use <say-as type="acronym"> as that can only be used with AT&T Natural Voices.
There is a previous forum post that addressed this issue here: http://support.plumvoice.com/viewtopic. ... 216&p=4108
If you're looking to spell out digits, you can use the following code example as reference:
realspeaksayasdigits.php:
If you're looking to spell out a word, you can use the following code example as reference:
realspeakspellword.php:
Hope this helps.
Regards,
Plum Support
Your onsite IVR system uses Nuance RealSpeak (with voices: Samantha and Paulina), so you wouldn't be able to use <say-as type="acronym"> as that can only be used with AT&T Natural Voices.
There is a previous forum post that addressed this issue here: http://support.plumvoice.com/viewtopic. ... 216&p=4108
If you're looking to spell out digits, you can use the following code example as reference:
realspeaksayasdigits.php:
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<form>
<field name="userdigits" type="digits?length=4">
<property name="inputmodes" value="dtmf"/>
<prompt>
<speak xml:lang="en-US"><voice name="Samantha">
Please enter some digits.
</voice></speak>
</prompt>
<filled>
<prompt>
<speak xml:lang="en-US"><voice name="Samantha">
You entered <say-as type="number:digits"><value expr="userdigits"/></say-as>.
</voice></speak>
</prompt>
</filled>
</field>
</form>
</vxml>
realspeakspellword.php:
Code: Select all
<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
<form>
<var name="myword" expr="'hello'"/>
<block>
<prompt>
<speak xml:lang="en-US"><voice name="Samantha">
Your word spelled out is <value expr="myword.replace(/(.)/g, '$1, ')"/>.
</voice></speak>
</prompt>
</block>
</form>
</vxml>
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com