On Mar 5, 2006, at 8:24 PM, Bartek Kania wrote:

>>> For example, a caller with a UK caller ID could automatically be
>>> played all prompts in one of the available UK accents without having
>>> to rewrite the dialplan. It would also make IVR scripting with
>>> interleaved use of male and female voices easier.
>> This scheme would rely being able to accurately identify the  
>> geographic
>> origin of a call, which in some cases may be presumptuous. I think at
>> the moment it is simpler to just set the channel language  
>> variable. That
>> in itself however, needs to be expanded from the current two letter
>> language code to a full locale code.
>
> I am doing exactly this but by using the dialplan instead.
> The automatic language detection shouldn't be coded into opbx

Nobody suggested that it should.

The point I was trying to make is that if the system has meta data  
about the recordings, then it can pick the voicefile with the  
language chosen, or gender chosen, or even specifically speaker chosen.

You could have something along the following lines in your dialplan ...

... SetLocale(UK-English)
...
... Background(NobodyAvail)

... and it would play back a UK voice recording of NobodyAvail  
because it has knowledge about the different recordings through the  
meta data in the voices & prompts database.

Likewise you could have something along the lines of ...

... SetVoiceGender(female)
...
... Background(NobodyAvail)

... and it would play back a female voice recording of NobodyAvail  
(if present).

Under which circumstances you want to use the SetLocale and  
SetVoiceGender (or whatever) functions is of course up to you, or  
whoever writes the dialplan script.

> We should define a generic voice prompt API that takes care of that
> for all apps and does the language dependent stuff. An app should just
> have to call a opbx_read_number(language, speaker, number) or
> something and be done with it.

indeed.

> We can gradually add the complexity needed to handle all oddities in
> the languages later without rewriting all apps if we use this  
> approach.

sounds like a plan.

regards
benjk

                
___________________________________________________________ 
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars 
online! http://uk.cars.yahoo.com/
_______________________________________________
Openpbx-dev mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-dev

Reply via email to