Voices in Spanish

Status
Not open for further replies.

sergio.duilio

New Member
Jul 14, 2019
17
4
3
61
Argentina
www.nubecall.com.ar
Hello friends, good morning, I need to upload the voices in Spanish to our FusionPBX in the cloud for production use.
Can someone guide us to download the package and replace the ones in English.
Thank you in advance and regards from Argentina.
 

ewdpb

Member
Oct 3, 2019
151
19
18
Hola Sergio,

As usual I am not sure if what I did was the best way to do it but it worked for me. In Spanish you are going to find two sets of voices: Maria and Mario. No one will tell which one is better and the configuration for either is half baked in freeswitch. Since you are in Argentina, Mario may work better for you (Maria is Mexican, Mario is Argentinian).

1. You need to install the sounds-set:

sudo apt-get install freeswitch-sounds-es-ar-mario

2. Modify the es.xml language config file:

sudo nano /usr/share/freeswitch/lang/es/es.xml

Note that apparently this file is a place holder for setting up European Spanish, so, I believed one should actually create a whole es-ar folder and file set. I tried doing so and failed misserably. So, I did this instead.

Set the sound-path variable to the location of Mario audio files. In my case: sound-path="$${sounds_dir}/es/ar/mario".

3. Make sure you set the right permissions:

sudo chown www-data. /usr/share/freeswitch/lang/es/es.xml

4. Add Spanish definitions to freeswitch.xml:

sudo nano /etc/freeswitch/freeswitch.xml

I have Engish, French and Spanish. Mine looks like this:

XML:
<section name="languages" description="Language Management">
    <X-PRE-PROCESS cmd="include" data="languages/en/*.xml"/>
    <X-PRE-PROCESS cmd="include" data="languages/fr/*.xml"/>
    <X-PRE-PROCESS cmd="include" data="languages/es/*.xml"/>
  </section>

5. Modify the audio path in sudo nano /etc/freeswitch/languages/es/es.xml.

sound-prefix="$${sounds_dir}/es/ar/mario"


That is all from freeswitch perspective. Now, for FusionPBX you have to decide if you switch the default language to Spanish. I would advice not to do that for the Spanish language set is not complete. There are many audio prompts missing. What I do is that I invoque language es when I need it in my code.

In any case you can try switching to Spanish and see how it works for you.


Hasta pronto.
 
  • Like
Reactions: sergio.duilio
Status
Not open for further replies.