Page 1 of 1

RealSpeak Engine Acrynom alternattive

Posted: Thu May 21, 2009 8:29 am
by amitkhosla
We are using RealSpeak TTS Engine and we have a requirement to promt user with some data that could be his phonenumber/telephone number. Actually this is his user-id.

we need to have something like this
<say-as type="acronym">9899498887</say-as>
<say-as type="acronym">xxx@xxx.com</say-as>

Please help me with some alternative of acronym in RealSpeak TTS engine

Regards,
Arvind

Sample IVR code for an alternative for acronym

Posted: Thu May 21, 2009 10:20 am
by support
Hi,

As an alternative for acronym, you can use the IVR <say-as> type, "number:digits", for your purposes

For IVR example:

enterdigits.php

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
  <form>
    <field name="englishdigits" type="digits?length=4">
      <prompt>
        Please enter some digits.
      </prompt>

      <filled>
        <prompt>
          You entered <say-as type="number:digits"><value expr="englishdigits"/></say-as>.
        </prompt>
      </filled>
    </field>
  </form>
</vxml> 
Hope this sample of IVR code helps.

Regards,
Plum Support

acrynom alternative for RealSpeak TTS

Posted: Thu May 21, 2009 12:01 pm
by amitkhosla
but in my case i can have alpha numeric values. not just the digits

alphanumeric say as acrynom RealSpeak TTS engine

Posted: Thu May 21, 2009 1:07 pm
by amitkhosla
how to handle alphanumeric inside the say as tag to have output like that of acrynom in case of RealSpeak TTS engine?

Regards,
Arvind

Sample IVR code for alphanumeric as acronym

Posted: Thu May 21, 2009 2:04 pm
by support
Hi,

Here's an example of IVR code that demonstrates how you can do this within your IVR tag, <value>:

digits.php:

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
  <form>
    <var name="variable" expr="'h1d3f4g5'"/>
    <block>  
      <prompt>
        Your variable is <value expr="variable.replace(/(.)/g, '$1, ')"/>.
      </prompt>
    </block>
  </form>
</vxml> 
Hope this helps.

Regards,
Plum Support