Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Created by: null on 29-05-2003 11:41:28 PM I have an audium application that simpily play an audio then goes to VoiceXML InsertElement and then hangs up. I am getting the following error in audium log.
I am using OSB 1.1 and Audium 3.2
[b:a40e826621]10.50.68.24.1054250973966.8.TransferTest,05/29/2003 18:29:40,An error has occurred[/b:a40e826621]
<form> <block> <audio>This is the initial prompt.</audio> <assign name="audium_exit_state" expr="'done'"/> <return namelist="audium_exit_state audium_vxmlLog audium_error audium_hotlink audium_hotevent audium_action" /> </block> </form>
</vxml>[/code:1:a40e826621]
Subject: RE: VoiceXML Insert Element Problem Replied by: null on 30-05-2003 08:10:30 PM Hello,
After looking at the VoiceXML Insert code, we found several issues which caused it to encounter that error:
1) The root document URL should contain "audium_vxml_root" instead of "audium_vxmlroot".
2) Different voice browsers react differently to ampersands in root document calls. OSB is one that doesn't like them. So instead of '&', it must be replaced with the escape version of ampersand ('&' followed by "amp;"). I did notice that the documentation does not mention anything about this, so I will make a note that the documentation be changed in our next version.
3) The root document call must have at least one argument in namelist. The one that would be sent if the VoiceXML Insert Element did not have any variables to pass would be "element_log_value" which stores the logging information one can do in a VoiceXML Insert element. Again, this is not mentioned in the documentation and I will make a not to change it.
Note that you can look at the Chapter5_AgeIdentificationRevisited tutorial application to see hall the above points. You can use this VoiceXML Insert element as a template for yours.
4) For some reason, OSB will not play audio contained within <audio> tags if it is within a <block>. This is what we found with the OSB we are using here. You may want to confirm this on your end. basically, what happens is that no TTS is played. So remove the <audio> tags and it will work.
<form> <block> This is the initial prompt. <assign name="audium_exit_state" expr="'done'"/> <return namelist="audium_exit_state audium_vxmlLog audium_error audium_hotlink audium_hotevent audium_action" />
</block> </form> </vxml> [/code:1:cc6b4550f8]
Note that because the Audium Forums website also understands the ampersand escape sequence, you won't see it displayed in the post (it will look like just a plain '&'). If you view source or look at the Chapter5 tutorial, you'll see the characters as it should look.
As I mentioned in the training class, using VoiceXML Insert elements means you have to deal with the vagaries of the voice browser you are dealing with yourself. So basically if you encounter errors in your VoiceXML Insert elements, try the same code directly with OSB, don't use Audium. If the error persists, its in the VoiceXML code and not Audium.
Makes you glad that all the browser quirkiness is handled within pre-built elements, doesn't it?!
Hope this helps!
Elam
Subject: RE: VoiceXML Insert Element Problem Replied by: null on 31-05-2003 02:36:26 AM Thank you for the prompt help. I guess [b:b1fb27539b]&[/b:b1fb27539b]amp; didn't show up in my posted code either , I had tested my code in BeVocal testbed. I applied the chages, even did a ditto copy of the code, but it didn't work. It could be the browser. I will keep on it and post here when it works.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: