|
Author
|
Topic: log statement between two prompts
|
smart_sagittarian
Junior Member
Member # 3369
Rate Member
|
posted April 20, 2006 12:05 PM
Is it possible to have a log statement played between two prompts? Or more specifically, there are a set of prompts which play one after the other, and I need a log statement put in after one of the prompts is played. Is this possible?
Posts: 4 | Registered: Feb 2006
| IP: Logged
|
|
mheadd
Member
Member # 3181
Member Rated:
|
posted April 21, 2006 12:52 PM
Since <prompt> and <log> are both legal children of the <block> element, you should be able to do this by enclosing everything between <block> tags.
code:
<?xml version = "1.0"?> <vxml version = "2.0" xmlns="http://www.w3.org/2001/vxml"> <form id="test"> <block> <prompt>This is the first prompt.</prompt> <prompt>This is the second prompt</prompt> <prompt>This is the third prompt</prompt> <log>*** The third prompt was played ***</log> <prompt>This is the last prompt.</prompt> </block> </form> </vxml>
Unfortunately, your VoiceXML interpreter is likely to queue up the prompts before they are played, meaning that the log will get written even if the caller hangs up and the TTS engine doesn't output the prompt your interested in.
If your interpreter supports the VoiceXML 2.1 spec, you may want to explore using the <mark> tag to detect when certain prompts are played.
Hope this helps.
-------------------- Mark VoiceinGov.org http://www.voiceingov.org
Posts: 55 | Registered: Jun 2005
| IP: Logged
|
|
|
|
|