| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
audio element which will be played to the caller if the audio resource cannot be found. This is somewhat standard procedure for all commercially deployed VoiceXML applications. The syntax neccessary for implementing backup TTS is:
<audio src="MyBogusFile.wav"> Here is some backup TTS. </audio>
<audio> within a <prompt>:
<prompt bargein="false">
<audio src="MyFile.wav">
Here is some backup TTS.
</audio>
</prompt>
| ANNOTATIONS: EXISTING POSTS |
fliptone
|
|
| Can I nest an <audio> tag inside an <audio> tag. I want to use this to play a custom prompt if one exists otherwise play the core prompt, like this:
<prompt timeout="5s"> <audio src="CustomWavs/Test.wav"> <audio src="CoreWavs/Test.wav" /> </audio> </prompt> |
|
voxeojeff
|
|
| Hi fliptone,
The <audio> element can have alternate content in case the audio sample is not available: If the audio file cannot be played (e.g. 'src' referencing or 'expr' evaluating to an invalid URI, a file with an unsupported format, etc), the content of the audio element is played instead. The content may include text, speech markup, or another audio element. If the audio file cannot be played and the content of the audio element is empty, no audio is played and no error event is thrown. For example: <?xml version="1.0" encoding="UTF-8"?> <vxml version = "2.1"> <form id="F_1"> <block> <prompt timeout="5s"> <audio src="PlayMeFirst.wav"> <audio src="ElsePlayMe.wav"/> </audio> </prompt> </block> </form> </vxml> This sample code will execute 'PlayMeFirst.wav' if it can be located, and will stop there. But, if it cannot be found, it will play 'ElsePlayMe.wav' instead, assuming it is there and can be played. I hope this helps! Cheers, Jeff Menkel Voxeo Corporation |
|
fliptone
|
|
| thanks. I tried that but did not hear the second prompt on the Voxeo SIP Phone. I do hear nested TTS. Maybe this is a bug in the SIP Phone implementation? | |
VoxeoBrian
|
|
| Hello,
We tested this in our local install of prophecy over the SIP phone and did not experience the issues you are speaking of. I must mention that in order for the second audio to file to be hit, the first file must not be present or must fail in its fetch of the file. Try renaming the first audio file to a file that does not exist, that will ensure the second audio file is hit. Please go ahead and give this a try and let us know your findings, as always we are standing by to assist. Cheers Brian |
|
fliptone
|
|
| found the error. I had an old Prophecy version. Downloaded the latest and it works just as you said. thanks! | |
danielvinson
|
|
| Hi
When do you think you will begin supporting the MP3 format? Regards Daniel |
|
VoxeoBrian
|
|
| Hello,
We currently do not have plans to offer support for .mp3 audio files. As with anything though, if the demand for the inclusion of this audio format becomes considerable, our engineering team may at that time incorporate such a feature. Regards Brian |
|
hashakie
|
|
| Does Voxeo supports 3gpp file for audio playback? | |
VoxeoDante
|
|
| Hello,
I will just need a little more information before I can completely answer this question. To my knowledge there is not a .3gpp audio format. If I am mistaken, please correct me. I do know there is a .3gp format but it is for video not audio. If there is a specific audio format you would like to know about please let me know which file extension interests you. If you were in fact asking about the .3gp video format, then we do not currently support that but plan to sometime in the future. There are a few notes I would like to make about using audio for playback over the phone. - All telephony uses 8khz sampling. 8000 samples per second is a universal constant in telephony. - When recording audio for use in telephony / IVR systems, the audio ultimately must be converted from bit rates other than 8khz and audio encodings other than 8bit uLaw - because 8bit ulaw is the only type of audio you can send over the phone network (at least here in the US). This conversion from higher bit rates and alternate encoding types can occur in the IVR platform, but it's best for the conversion to be done in advance by IVR developers or prompt studios. - If you don't plan on mixing and editing the prompts they record, it's best to just record at 8khz/16bit and then save or convert to 8khz/8bit-ulaw. Here is a link to the documentation we have on using audio for telephony applications. http://docs.voxeo.com/voicexml/2.0/appendixf.htm Please advise, Dante Vitulano |
|
voxeojeremy
|
|
| It is not possible to play more than 15 minutes audio (TTS, several consecutive prompts, etc) in a single input action for items like <field>, <record>, etc.
So the work-around strategy should be the following: An array of prompts for each topic should be created and assigned to prompts which are supposed to be played, then after each single prompt is played, the application should wait for no input for a short time (say 100ms) and then play the next slice. Code snippet is below: <var name="PromptSet" expr="new Array()" /> <var name="n_prompts"/> <var name="i_prompt" expr="-1" /> <var name="cur_prompt"/> <script> <![CDATA[ PromptSet [0] = p1.wav; PromptSet [1] = p2.wav; n_prompts = 1; ]]> </script> <block name="start_prompt_set"> <script> <assign name="i_prompt" expr=" i_prompt + 1" /> <if cond=" i_prompt > n_prompts "> <goto next="#DONE_PLAYING_ PROMPT_SET"/> </if> <assign name="cur_prompt" expr=" PromptSet[i_prompt]" /> <goto nextitem="wait_for_hot_interrupt"/> </block> <field name=" wait_for_hot_interrupt "> <grammar>{whatever grammar you have}</grammar> <prompt bargein="true" bargeintype="hotword" timeout="100ms"> <audio expr=" cur_prompt "/> </prompt> <noinput> <goto nextitem="start_prompt_set"/> </noinput <filled> {do whatever is done right now} </filled> </field> Cheers! Jeremy McCall Voxeo Extreme Support |
|
abhijeet
|
|
| How can I control the play of an audio file? For e.g. if I want to let the user pause, fast forward or rewind the messae or such audio control;on the pres of DTMF key. | |
voxeojeff
|
|
| Hello,
The ability to pause and resume playback of an audio file is not something that is currently possible in the VoiceXML specification. This can however be done with some clever server side logic that will rely on tracking the .wav bit files and manipulating it to move through the recording. While we don't have any examples of this being done, some of our customers have been able to accomplish this. Please let me know if this helps clarify things for you, as well if you have any additional questions. Regards, Jeff |
|
galmelam
|
|
| Hi Voxeo gurus, please help:
Any reason why the audio and the backup text is not heard? <?xml version="1.0" encoding="UTF-8"?> <vxml version="2.1"> <meta name="maintainer" content="MYEMAIL"/> <form id="Main"> <prompt bargein="false"> <audio src="AdA8K.wav"> Here is some backup TTS. </audio> </prompt> <block> Hello World </block> </form> </vxml> |
|
VoxeoDustin
|
|
| Hello,
The prompt and audio file aren't being executed because they are not within an executable item, e.g. field, block, record, or transfer. Enclose these in a block like below and that will correct the issue: <form id="Main"> <block> <prompt bargein="false"> <audio src="AdA8K.wav"> Here is some backup TTS. </audio> </prompt> </block> Let me know if we can be of further assistance. Regards, Dustin Hayre Solutions Engineer Voxeo Corporation |
|
iixr4tii
|
|
| Hello-
I was wondering if you offer support for the .mp3 format yet? If not how about the following? ACC, WMA, OR FLAC? I know that the best quality is best if I recored at the following formats 8khz sampling right from the bat but I won't be able to do that and will need to send one of the following formats through the IVR Platform. Which is the best to send that will get the best conversion output from your experience? One thing to note is most of the samples are music clips of some sort. |
|
voxeoJeffK
|
|
| Hello,
Prophecy 9 and 10 do indeed support MP3 (not the others you mention though). Note though that most telephony infrastructure transmits audio at 8khz, so even if you have better quality files the user will usually not get that quality. Regards, Jeff Kustermann Voxeo Support |
| login |
|