<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>VAudio: error.semantic</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=2740341" />
  <subtitle>VAudio: error.semantic</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=2740341</id>
  <updated>2013-05-18T22:27:35Z</updated>
  <dc:date>2013-05-18T22:27:35Z</dc:date>
  <entry>
    <title>RE: VAudio: error.semantic</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=2744948" />
    <author>
      <name>Theepan Gnani</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=2744948</id>
    <updated>2010-11-16T01:44:11Z</updated>
    <published>2010-11-16T01:44:11Z</published>
    <summary type="html">[quote]Please provide more details. What are you seeing in the logs? [/quote]
Thank you for the quick response. I was able to get this to work.
 
My problem was that I was generating proper Voice XML file. 
 
In the log file I was seeing "error.semantic"
 
Solution was to Submit the page by creating proper VAction object.
[color=#0000c0][/color]
 
 
 
 

VPreference pref = voiceElementData.getPreference();
 
&lt;font size="2"&gt;
 
&lt;/font&gt;
[color=#3f7f5f]// Set a page-scope property.[/color]
 
 
[color=#0000c0][/color]
 
[color=#0000c0][/color]
[color=#7f0055][/color]
[color=#0000c0][/color]
 
[color=#7f0055][/color]
 
 
 
 
 
 
 
 
&lt;font size="2"&gt;
 
&lt;/font&gt;
 
 
&lt;font size="2"&gt;
vxml.setProperties(VProperty.[i]getNew[/i](pref, 
&lt;/font&gt;
 
[color=#2a00ff]"someProperty"[/color], [color=#2a00ff]"someValue"[/color]
));
 
&lt;font size="2"&gt;
 
&lt;/font&gt;
 
[color=#3f7f5f]// Make a page-scope variable.[/color]
&lt;font size="2"&gt;
vxml.add(
&lt;/font&gt;
 
[color=#2a00ff]"myVar"[/color], [color=#2a00ff]"playing audio "[/color], VMain.[i][color=#0000c0]WITH_QUOTES[/color][/i]
);
 
&lt;font size="2"&gt;
VForm form = VForm.[i]getNew[/i](pref, 
&lt;/font&gt;
 
[color=#2a00ff]"start"[/color]
);
VBlock block = VBlock.[i]getNew[/i](pref);
 
&lt;font size="2"&gt;
promoAudioFileName = Constant.
&lt;/font&gt;
 
[i][color=#0000c0]PROMO_MESSAGE_50[/color][/i] + [color=#2a00ff]"."[/color]
 + audioFileType;
promoAudioFileName = audioPath + promoAudioFileName;
 
&lt;font size="2"&gt;
 
&lt;/font&gt;
 
[b][color=#7f0055]this[/color][/b].logToActivityLog(voiceElementData,currentMethod, [color=#2a00ff]"File to be played: "[/color]
+ promoAudioFileName);
 
&lt;font size="2"&gt;
VAudio promoMessage = VAudio.[i]getNew[/i](pref, AudioFileName, VAudio.
&lt;/font&gt;
 
[i][color=#0000c0]FILENAME_ONLY[/color][/i]
);
 
&lt;font size="2"&gt;
 
&lt;/font&gt;
 
[color=#3f7f5f]// Disable Bargein (key over)[/color]
&lt;font size="2"&gt;
promoMessage.
&lt;/font&gt;
 
[color=#0000c0]bargein[/color] = [b][color=#7f0055]false[/color][/b]
;
 
&lt;font size="2"&gt;
 
&lt;/font&gt;
 
[color=#3f7f5f]//VAudio promoMessage2 = VAudio.getNew(pref, "http://10.3.254.204/en-us/app/eng/80060.wav", VAudio.FILENAME_ONLY);[/color]

 
&lt;font size="2"&gt;
block.add(promoMessage); 
&lt;/font&gt;
 
[color=#3f7f5f]// Add the audio to the block.[/color]
&lt;font size="2"&gt;
 
&lt;/font&gt;
 
[color=#3f7f5f]//block.add(promoMessage2); // Add the audio to the block.[/color]

 
&lt;font size="2"&gt;
 
&lt;/font&gt;
 
[color=#3f7f5f]//Not Sure why i'm doing this but, you have to inorder generate a proper Voice XML Page[/color]
&lt;font size="2"&gt;
VAction submitAction = getSubmitVAction(
&lt;/font&gt;
 
[color=#2a00ff]"myVar"[/color]
, pref);
 
&lt;font size="2"&gt;
block.add(submitAction); 
&lt;/font&gt;
 
[color=#3f7f5f]// Add the action to the block (occurs after the audio or won't hear it).[/color]
&lt;font size="2"&gt;
form.add(block); 
&lt;/font&gt;
 
[color=#3f7f5f]// Add the block to the myOtherForm form.[/color]
&lt;font size="2"&gt;
vxml.add(form); 
&lt;/font&gt;
 
// Add myOtherForm to the VMain object. &lt;font size="2" color="#3f7f5f"&gt;&lt;font size="2" color="#3f7f5f"&gt;
 
&lt;/font&gt;&lt;/font&gt;&lt;font size="2" color="#3f7f5f"&gt;
 
&lt;/font&gt;
 
 &lt;font size="2"&gt;
 
&lt;/font&gt;
 
 
 
 </summary>
    <dc:creator>Theepan Gnani</dc:creator>
    <dc:date>2010-11-16T01:44:11Z</dc:date>
  </entry>
  <entry>
    <title>RE: VAudio: error.semantic</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=2742386" />
    <author>
      <name>Hemal Mehta</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=2742386</id>
    <updated>2010-11-14T23:16:24Z</updated>
    <published>2010-11-14T23:16:24Z</published>
    <summary type="html">Please provide more details. What are you seeing in the logs? </summary>
    <dc:creator>Hemal Mehta</dc:creator>
    <dc:date>2010-11-14T23:16:24Z</dc:date>
  </entry>
  <entry>
    <title>VAudio: error.semantic</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=2740340" />
    <author>
      <name>Theepan Gnani</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=2740340</id>
    <updated>2010-11-13T03:57:04Z</updated>
    <published>2010-11-13T03:57:04Z</published>
    <summary type="html">Hello,
 
I'm trying to play an Audio file in VoiceElement class and it doesn't seems to be working.
 
Please see the code and let me know if there is any issues..
 
 
 
[color=#7f0055][/color]
[color=#0000c0][/color][color=#7f0055][/color]
 
 
 

VPreference pref = voiceElementData.getPreference();
&lt;font size="2"&gt;
VForm form = VForm.[i]getNew[/i](pref, 
&lt;/font&gt;
 
[color=#2a00ff]"start"[/color]
);&lt;font size="2"&gt;
 
&lt;/font&gt;
 
[color=#3f7f5f]//VForm form = VForm.getNew(pref, "PromoMsg");[/color]

VBlock block = VBlock.[i]getNew[/i](pref);
&lt;font size="2"&gt;
 
&lt;/font&gt;
 
[color=#3f7f5f]//VAudio promoMessage = VAudio.getNew(pref,audioPath, audioFile,"File Not Found", audioFileType, false);[/color]
&lt;font size="2"&gt;
VAudio promoMessage = VAudio.[i]getNew[/i](pref,
&lt;/font&gt;
 
[color=#2a00ff]"en-us/app/"[/color], [color=#2a00ff]"80060"[/color],[color=#2a00ff]"File Not Found"[/color], [color=#2a00ff]"wav"[/color], [b][color=#7f0055]false[/color][/b]
);
 
&lt;font size="2"&gt;
VAction addAction = VAction.[i]getNew[/i](pref, VAction.
&lt;/font&gt;
 
[i][color=#0000c0]EXIT[/color][/i], [b][color=#7f0055]super[/color][/b]
.getSubmitURL());
 
 
&lt;font size="2"&gt;
block.add(promoMessage); 
&lt;/font&gt;
 
[color=#3f7f5f]// Add the audio to the block.[/color]
&lt;font size="2"&gt;
block.add(addAction); 
&lt;/font&gt;
 
[color=#3f7f5f]// Add the action to the block (occurs after the audio or won't hear it).[/color]
&lt;font size="2"&gt;
form.add(block); 
&lt;/font&gt;
 
[color=#3f7f5f]// Add the block to the myOtherForm form.[/color]

vxml.add(form);</summary>
    <dc:creator>Theepan Gnani</dc:creator>
    <dc:date>2010-11-13T03:57:04Z</dc:date>
  </entry>
</feed>

