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.
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>
Set name attribute of <voice> tag using IVR script
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
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