Make freeswitch use spanish sounds...
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.
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
¡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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hola Michael, i am using spanish prompts, but mod_say_es is incomplete and i have been doing changes to the code, later i will pastebin those changes so you can check and approve. Luis Jimenez -----Original Message----- From: Michael Collins <msc@freeswitch.org> Sender: freeswitch-users-bounces@lists.freeswitch.org Date: Wed, 19 Oct 2011 14:45:38 To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Make freeswitch use spanish sounds... FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
¡Excelente! Let me know when you are done and I'll test it as best I can. I only know a few dozen words in Spanish but I can at least test the basic stuff. -MC On Thu, Oct 20, 2011 at 5:33 AM, Luis Jimenez <ljjimenez@gmail.com> wrote:
Hola Michael, i am using spanish prompts, but mod_say_es is incomplete and i have been doing changes to the code, later i will pastebin those changes so you can check and approve.
Luis Jimenez
-----Original Message----- From: Michael Collins <msc@freeswitch.org> Sender: freeswitch-users-bounces@lists.freeswitch.org Date: Wed, 19 Oct 2011 14:45:38 To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Make freeswitch use spanish sounds...
FreeSWITCH-users mailing list FreeSWITCH-users@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Francisco Javier Cintrón Olguín
-
Luis Jimenez
-
Michael Collins