cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
120
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 13-06-2006 12:59:23 PM
Hi,

I know this topic has been covered numerous times, as I have read some documentation and posts on the the subject but I am having difficulty understanding the concept.

I have been trying to figure out how I am going to play different language wav files in the same audio elements and say it smart plugins...I have two directory paths for languages with the wav files named exactly the same.

The scenario is that, I will be sending multiple languages to a single VXML application, as in documentation I think I want to use a substitution tag which will set the audio path dynamically of course based on the language. I will be passing the language type intially in session data as either en_ca or fr_ca. The question is where is the association between the value being passed in this "language" session data and the substituted audio directory path?

In other words If I am passing "en_ca" in the language session data how is that value used to determine the path? The only thing that makes sense to me is using an action element to set the path initially up front?

any hints?

Thanks

Subject: Re: Multiple languages into one Application
Replied by: null on 13-06-2006 09:16:14 PM
With Studio 5 you can use substitution when specifying the audio URI. TTS changes typically require dynamic configuration logic. We typically change the application audio path when we switch languages.

Also, how are you planning to play back dynamic data ? We have built a small collection of Say It Smarts for English, Spanish and French (other languages can be built if there is a need). The collection includes support for Count, Currency, Date, PhoneNumber, Spell and Time. Language and other settings are passed into the SIS via the Data parameter.

If interested, drop me an eMail at [email protected].

I hope this was helpful,
Jim

Subject: RE: Re: Multiple languages into one Application
Replied by: Vance Vagell on 13-06-2006 09:20:22 PM
Hi Dylan,

That's correct, you could create a custom action element that changes the default audio path at runtime. In conjunction with a file and directory naming convention, you can use this to change which audio files will be used for the remainder of the call. The method you would use is:

[code:1:a3f5c9b527]void setDefaultAudioPath(String path)[/code:1:a3f5c9b527]

from the APIBase class. For more information about this method and others, please refer to the Audium Java API Javadocs and the Programmer Guide.

Additionally, you may find the following Audium Knowledge Base articles helpful:

Can I use different audio paths for each language my application supports?
Developing a multilingual application

Regards,
Vance
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