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

Question on <voice>

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
agfa
Posts: 40
Joined: Thu Jun 15, 2006 12:56 pm

Question on <voice>

Post by agfa »

Currently for Mike's voice we use in the following way.
<voice name="mike">
Welcome
</voice>

I like to know whether I can save the voice name in a variable and set it. Voice name is from the user configuration. But I don't know how we could set that global variable in the voice tag.

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

Set name attribute of <voice> tag using IVR script

Post by support »

Hello,

There is no way to set the name attribute of the <voice> tag using an ECMAScript variable. The only way to change this attribute is to dynamically generate the VoiceXML using server side script rather than using static VoiceXML scripts. The only IVR attributes that can be changed have a *expr equivalent attribute in the same tag (e.g. - src / srcexpr). If there is no *expr attribute then that attribute cannot be set using ECMAScript.

Regards,
Plum Support

Post Reply