[Freeswitch-users] Make freeswitch use spanish sounds...

Michael Collins msc at freeswitch.org
Thu Oct 20 01:45:38 MSD 2011


¡Buen trabajo!

Thanks for letting us know that it's working. I have an item on my to-do
list to get the Spanish files updated but it's WAY down on the priority
list...

-MC

On Wed, Oct 19, 2011 at 11:45 AM, Francisco Javier Cintrón Olguín <
fcintrono at gmail.com> wrote:

> This morning I followed all your directions.
> I only needed to add this two lines to vars.xml:
>
>  <X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/es/mx/maria"/>
>  <X-PRE-PROCESS cmd="set" data="default_language=es"/>
>
> And It worked perfectly.
>
> Thank you very much.
>
>
> On Tue, Oct 18, 2011 at 3:57 PM, Michael Collins <msc at freeswitch.org>wrote:
>
>> Well, be sure to build mod_say_es. From your FS source tree:
>>
>> make mod_say_es-install
>>
>> Unfortunately it looks like the installer does not create a conf/lang/es/
>> directory for you, so you will need to create one yourself. Copy the
>> conf/lang/en/* directory structure and files into conf/lang/es/*
>>
>> After that go into conf/lang/es and rename en.xml to es.xml. Open that
>> file and look for this line:
>> <language name="en" say-module="en"
>> sound-prefix="$${sounds_dir}/en/us/callie" tts-engine="cepstral"
>> tts-voice="callie">
>>
>> Change it to:
>> <language name="es" say-module="es"
>> sound-prefix="$${sounds_dir}/es/mx/maria" tts-engine="cepstral"
>> tts-voice="callie">
>>
>> Be sure to put your maria sounds in the proper directory structure, just
>> like the sounds/en/us/callie files are.
>>
>> You will also need to add a line to freeswitch.xml like the other langs:
>> <X-PRE-PROCESS cmd="include" data="lang/es/*.xml"/>
>>
>> If you want to load mod_say_es automatically then add it to
>> conf/autoload_configs/modules.conf, otherwise restart FreeSWITCH and do
>> "load mod_say_es" and hopefully nothing blows up! :)
>>
>> Also, you may want to set the default language on calls that you know are
>> Spanish. Check out this wiki page for assistance. (
>> http://wiki.freeswitch.org/wiki/Channel_Variables#default_language)
>>
>> -MC
>>
>> On Tue, Oct 18, 2011 at 1:32 PM, Francisco Javier Cintrón Olguín <
>> fcintrono at gmail.com> wrote:
>>
>>> I downloaded this file which is a set of spanish sounds for freeswitch:
>>>
>>> http://files.freeswitch.org/freeswitch-sounds-es-mx-maria-44100.tar.gz
>>>
>>> As you see It only has sounds for the 44100 frecuency.
>>> To generate files for the 8000, 16000 and 32000 frecuencies,  I untarred
>>> the file inside freeswitch/sounds directory.
>>>
>>> After I untarred the file, there was a directory called es/mx/maria which
>>> has all this subdirectories:
>>>
>>> ascii
>>> currency
>>> ivr
>>> phonetic-ascii
>>> voicemail
>>>  conference
>>> digits
>>> misc
>>> time
>>> zrtp
>>>
>>> For each of these subdirectories I made this:
>>>
>>> cd "one of the directories inside sounds/es/mx/maria "
>>> mkdir 8000
>>> mkdir 16000
>>> mkdir 16000
>>>
>>> cd 44100
>>> for a in *.wav;
>>> do
>>>      /usr/bin/ffmpeg -i "$a" -ar 8000 -ac 1 -ab 128 "../8000/"$a;
>>>      /usr/bin/ffmpeg -i "$a" -ar 16000 "../16000/"$a;
>>>      /usr/bin/ffmpeg -i "$a" -ar 32000 "../32000/"$a;
>>> done
>>>
>>> Now I have a complete set of spanish sounds for the 8000, 16000, 32000 y
>>> 44100 frecuencies
>>>
>>> ¿What would I need to configure in freeswitch to use these spanish sounds
>>> instead of the english ones?
>>>
>>> Thanks in advance for your kind help.
>>>
>>>
>>>
>>>
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111019/faa0ffb0/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list