cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
306
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: null on 25-03-2003 04:21:57 AM
Hello,
I have a question about the playing of sound files by the Audium Server.

VTimeNumber time = VTimeNumber.getNew(preference,hhmm, VTimeNumber.TIME_HHMM, VTimeNumber.USE_NOON_OR_MIDNIGHT, VTimeNumber.MORE_FILES);

This method is used to play back the time to the user. The Audium server uses TTS to translate the string "hhmm" instead of playing the sound files meant for the numbers. I have stored numbers 0 to 59, am, pm, noon, midnight etc on a separate directory called numbers.

Why is TTS happening even though, i have all the WAV files necessary in the proper location?

Thanks,
Nagarajan

Subject: RE: Wav files and TTS
Replied by: null on 25-03-2003 11:45:57 PM
Hi Nagarajan,

Can you tell me what version of Audium you are using?

Also, if you are specifiying a path for the say it smart audio, are you using a full or relative url?

In older versions of Audium (v3.2.0 and below), the path content is always appended to the default audio path application setting, so you cannot specify a full url. Therefore, if you are using an older version, I would suggest upgrading to the latest release.

Regards,

Joe

Subject: RE: Wav files and TTS
Replied by: null on 28-03-2003 12:28:41 AM
Hi,
I am using Audium 3.2. I am trying to use the absolute URL path.

I have set the default audio application path in the web.xml file of my Apache Tomcat server.

The numbers from 0 to 59 and a few words like am, pm, oh (i dont have audio files for noon and midnight) are stored in a folder called "numbers" directly under the default audio path.

I basically append the "numbers" folder name as a string to the default audio path and pass the entire URL as argument to the time.getVAudio() method.

i.e. if the default path is set as "sound" I make the absolute path as "sound/numbers/" and pass this to

time.getVAudio("sound/numbers/") ;
where time is a VTimeNumber object;

I am not using the Audium Builder to set the default audio path, instead i use web.xml; Is this an issue?

Thanks,
Nagarajan

Subject: RE: Wav files and TTS
Replied by: null on 28-03-2003 07:31:15 PM
Hi Nagarajan,

Are your audio files located in <tomcat_home>/webapps/ROOT/sound/numbers? If so, I would try doing this:

time.getVAudio("/sound/numbers/") ;

In other words, I think you need a / before the path.

Hope this helps,
Val

Subject: RE: Wav files and TTS
Replied by: null on 28-03-2003 09:51:05 PM
Another thing you should consider is that using Audio groups in a voice element, all this is taken care of for you. You don't have to use any Say It Smart classes (like VTime) because Audium automatically handles it all for you.

So I believe you are doing more work than you really need to...

Subject: RE: Wav files and TTS
Replied by: null on 29-03-2003 10:50:12 PM
Hi,
Thanks a lot for your suggestions. The problem persists though.

I am using Voxeo with VWS 1.3 for testing this application. It has been written using VFC's only.(the Builder was not used at all)

I found from the Voxeo logs that when ever I use the time.getVAudio() method (where time is a VTimeNumber object) the filenames meant for the numbers are accessed with out their extensions.

For e.g if I want to play the time "12.30 PM" to the user, the files are accessed as follows

http://IP-Address:8080/soundFiles/12
http://IP-Address:8080/soundFiles/30
http://IP-Address:8080/soundFiles/PM

Even though the application is able to locate the soundfiles, it does not apply the extension "WAV" to their filenames.

So, instead of finding 12.WAV, the application loads the file name as 12 only. Since there is no file named 12 (there is a 12.WAV instead), Audium plays the TTS versions of 12, 30 and PM.

How ever Audium is able to load other prompts from the same location with the WAV extension. So, i dont have a problem playing files that are prompt menus/questions etc.

When I use the getVAudio() function for playing the time, all I get is TTS.

Hope this explains the problem better.

Thanks,
Nagarajan

Subject: RE: Wav files and TTS
Replied by: null on 01-04-2003 05:14:15 PM
Hi Nagarajan,

This should fix your problem: Instead of using

time.getVAudio("/sound/numbers/");

use

time.getVAudio("/sound/numbers/", true, "WAV");

This will specify that you want to use files ending in .WAV and TTS backup.

Hope this solves your problem.

Val

Subject: RE: Wav files and TTS
Replied by: null on 01-04-2003 11:13:22 PM
Nagarajan,

The Audium Builder and Audium server is built to automatically take care of the procedures you are trying to perform yourself. While most of the questions about the VFCs are answered in the VFC Javadocs, the VFCs themselves are only a small part of the Audium software. If you build an application on Audium software using the processes described in the Audium documentation, you would not encounter any of the problems you described in this post.

As I mentioned before, if you were to look at the approach for building voice applications provided with Audium 3, you will see that it will cut down significantly the work you will have to do compared to the approach you are using. Audium Elements already provide most of the dialog functionality you will need, without the need to do any coding at all. The VFCs are needed only to build voice elements not currently provided by Audium, and even in these cases, Audio Groups and SayItSmart automatically takes care of using the VFCs inherited from VNumber. The Audium Builder allows you to build your call flow graphically, you don't have to handle it yourself.

In very early versions of Audium software, Audium provided support for the process of building voice applications you are using. In Audium 3, however, Audium can only provide support for those processes involving both the Audium Builder and the Audium Server.

Subject: RE: Wav files and TTS
Replied by: null on 03-04-2003 12:24:45 AM
Hello,
Thanks a lot for all your responses/suggestions. I have not yet tried
time.getVAudio("/sound/numbers/", true, "WAV") but i think that this should work. Thanks again for the solution.

The reason that i have been using the VFC's instead of the Builder is because the code that i am working on used VFC's extensively.It would have taken me more time converting this really huge app into a Builder application than i wanted to spend

How ever this has been a good lesson that in the future,Audium Builder is the best bet to develop applications with minimal fuss and in lesser time.

Thanks,
Nagarajan
Getting Started

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:

Quick Links