Author Message
VilmantasJurgelionis
Joined: Dec 3, 2013
Messages: 2
Offline
Hello,

I have a vxml file with simple content which plays one prompt and then goes to another vxml file which plays another prompt.
Basically I want that audio should be played while fetching is in progress. If audio file exists or is reachable then everything works fine - both prompts are played.
But when audio file is missing or is not reachable, then first prompt is played and application terminates.

According to the specification a behaviour should be different:
The fetchaudio attribute is useful for enhancing a user experience when there may be noticeable delays while the next document is retrieved.
This can be used to play background music, or a series of announcements.
When the document is retrieved, the audio file is interrupted if it is still playing. If an error occurs retrieving fetchaudio from its URI,
no badfetch event is thrown and no audio is played during the fetch.

http://www.w3.org/TR/2004/REC-voicexml20-20040316/#dml6.1


I get this error in the logs ("error.semantic" error is logged):
@2014-01-07 06:01:05,764||FINE|CommonVXI.Prompt|3041|Session=trtpoc-mpp1m-2014007060102-14|Queuing TTS prompt - MIME type application/synthesis+ssml Text: <?xml version="1.0" ?>
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-gb">Hello World</speak>|trtpoc-mpp1m####
@2014-01-07 06:01:05,764||FINE|CommonVXI.Prompt|3041|Session=trtpoc-mpp1m-2014007060102-14|Using ISO Language Code: en-gb for TTS|trtpoc-mpp1m####
@2014-01-07 06:01:05,764||FINE|CommonVXI.Interpreter|3041|Session=trtpoc-mpp1m-2014007060102-14|PromptManager::AddSegment() - queuing segment type: SSML platform returned: 57|trtpoc-mpp1m####
@2014-01-07 06:01:05,765|PAVB_03335|INFO|VB|3041|Session=trtpoc-mpp1m-2014007060102-14|Got VoiceXML exception: error.semantic|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINE|CommonVXI.Interpreter|3041|Session=trtpoc-mpp1m-2014007060102-14|VXI::DoEvent - Enter|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINER|CommonVXI.Interpreter|3041|Session=trtpoc-mpp1m-2014007060102-14|VXI.cpp:3185:VXI::playingPrompts = false|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINE|VB|409|Session=trtpoc-mpp1m-2014007060102-14|waiting for VXML_PROMPT_PLAY_COMPLETE|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINEST|CommonVXI.Interpreter|3041|Session=trtpoc-mpp1m-2014007060102-14|VXI.cpp:9320:VXI::SendUserEvent() - event --> error.semantic is not an event for CCXML processor.|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINER|CommonVXI.Interpreter|3041|Session=trtpoc-mpp1m-2014007060102-14|VXI.cpp:3469:VXI::execute_content()|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINER|CommonVXI.Interpreter|3041|Session=trtpoc-mpp1m-2014007060102-14|VXI.cpp:3536:VXI::executable_element - IF|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINER|CommonVXI.Interpreter|3041|Session=trtpoc-mpp1m-2014007060102-14|VXI.cpp:4119:VXI::if_element()|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINER|CommonVXI.Interpreter|3041|Session=trtpoc-mpp1m-2014007060102-14|VXI.cpp:3536:VXI::executable_element - LOG|trtpoc-mpp1m####
@2014-01-07 06:01:05,765||FINE|LogTag|3041|Session=trtpoc-mpp1m-2014007060102-14|(SessionID: trtpoc-mpp1m-2014007060102-14)Error: error.semantic , Error parsing prompt.|trtpoc-mpp1m####

Code:
<?xml version="1.0" encoding="UTF-8"?>

<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-gb">

<form id="ExecuteApp">
<property name="fetchaudio" value="http://IP to my wav file/demo.wav"/>
<block>
<prompt>Vilmantas</prompt>
<goto expr="'./HelloWorld.vxml'" fetchtimeout="50s" />

</block>
</form>
<catch event="error">
<block><prompt>broken</prompt></block>
<exit/>
</catch>
</vxml>


HelloWorld.vxml code:
<?xml version="1.0" encoding="UTF-8"?>

<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml" xml:lang="en-gb">
<form name="a">
<block>
<prompt>Hello World</prompt>
</block>
</form>
</vxml>

MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
This is not the correct forum for your query. You may be able to get some help from the Avaya Aura Orchestration Designer forum.

Martin
Go to:   
Mobile view