We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

RealSpeak Engine Acrynom alternattive

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
amitkhosla
Posts: 53
Joined: Sun Feb 15, 2009 11:42 pm
Contact:

RealSpeak Engine Acrynom alternattive

Post 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

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

Sample IVR code for an alternative for acronym

Post 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
Last edited by support on Wed Feb 24, 2010 12:53 pm, edited 5 times in total.

amitkhosla
Posts: 53
Joined: Sun Feb 15, 2009 11:42 pm
Contact:

acrynom alternative for RealSpeak TTS

Post by amitkhosla »

but in my case i can have alpha numeric values. not just the digits

amitkhosla
Posts: 53
Joined: Sun Feb 15, 2009 11:42 pm
Contact:

alphanumeric say as acrynom RealSpeak TTS engine

Post 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

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

Sample IVR code for alphanumeric as acronym

Post 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

Post Reply