SOLVED Language Prompts

Status
Not open for further replies.

Clive Churchyard

New Member
May 4, 2017
16
0
1
48
the included instructions are aimed at Freeswitch but obviously there are some location changes for FusionPBX.

Once the files have been extracted the instructions say this:

5) In order to get your system to use the installed voice prompts instead of
the default language you have to edit a couple of configuration files
so that FreeSWITCH can locate the prompts.


6) Edit /usr/src/freeswitch/conf/freeswitch.xml and add the following line within
the "phrases" section:

<X-PRE-PROCESS cmd="include" data="lang/en/*.xml"/>

Example:

<section name="phrases" description="Speech Phrase Management">
<macros>
<X-PRE-PROCESS cmd="include" data="lang/de/*.xml"/>
<X-PRE-PROCESS cmd="include" data="lang/en/*.xml"/>
<X-PRE-PROCESS cmd="include" data="lang/fr/*.xml"/>
<X-PRE-PROCESS cmd="include" data="lang/it/*.xml"/>
<X-PRE-PROCESS cmd="include" data="lang/hr/*.xml"/>
<X-PRE-PROCESS cmd="include" data="lang/ru/*.xml"/>
</macros>
</section>
however this I think is in /usr/share/freeswitch/vanilla directory and already includes the line in the Language Management section

7) Edit the file /usr/src/freeswitch/modules.conf and add the following line to the "say"
options:

say/mod_say_en

Note: Depending on the FreeSWITCH build and languages installed this might already exist
in the file.

cant find this file - but surely this should be configurable through the GUI

8) Edit the file /usr/local/freeswitch/conf/vars.xml and locate the <!-- Defaults -->
section which currently looks something like this:

<!-- Defaults -->
<X-PRE-PROCESS cmd="set" data="default_language=en"/>
<X-PRE-PROCESS cmd="set" data="default_dialect=us"/>
<X-PRE-PROCESS cmd="set" data="default_voice=callie"/>

Replace the 3 lines under the Defaults header with the following lines:

<X-PRE-PROCESS cmd="set" data="default_language=en"/>
<X-PRE-PROCESS cmd="set" data="default_dialect=gb"/>
<X-PRE-PROCESS cmd="set" data="default_voice=rachael"/>

Again this should surely be done inthe GUI - but when changed has no effect

9) Build and load the "mod_say_en" language parameter files by logging into the command
shell and running the following commands:


cd /usr/src/freeswitch
./configure
make mod_say_en-install
/usr/local/freeswitch/bin/fs_cli
reload mod_say_en
reload

Is this needed? - if so what are the correct locations and instructions>?

Any help on this would be greatly appreciated

Clive
 

Duncan

New Member
Jul 18, 2017
7
0
1
55
Hi Clive.

What method did you use to install Fusionpbx. I am looking at mine and none of the locations match up (presumably because I did a package install on Debian).
 

Clive Churchyard

New Member
May 4, 2017
16
0
1
48
I have used both the debian packaged install as in the quick start guide and also the cluster install script.

none of the westany locations match i agree

Some on must have done this with success!
 

Clive Churchyard

New Member
May 4, 2017
16
0
1
48
the only way i can see to make it work is to rename the uploaded folders 'gb' and 'rachael' to 'us' and 'callie'

Which is fine, but not ideal, if only a single language is required
 

Jonathan R.

New Member
Nov 3, 2017
14
3
3
33
Anyone has update for this ? Renaming works, but i live in Québec, we need to have bilingual systems.

i tried changing values in Variables (the 4 values) but it says "Identification incorrecte" (EN : Incorrect ID) repeatedly when i dial *97 and *732 just hang up.

I chown files to www-data:www-data and 755 but still won't work.
 

Frank

Member
Dec 28, 2016
61
10
8
67
I live in Quebec and the way I have it working is by setting a default language for Fusion. Then I set the individual domains to either English or French by changing the settings in Dial Plan Manager 'Variables'. I also have some domains set to bilingual when using IVR's (It was a little tricky setting this up so I paid someone to set this up and it works like a charm).
 

Frank

Member
Dec 28, 2016
61
10
8
67
If your logs are showing this..

2018-05-10 15:14:50.662649 [ERR] mod_local_stream.c:467 Can't open Attente_Musicale.wav
2018-05-10 15:14:50.682616 [ERR] mod_sndfile.c:204 Error Opening File [Attente_Musicale.wav] [System error : No such file or directory.]
2018-05-10 15:14:50.682616 [ERR] mod_local_stream.c:467 Can't open Attente_Musicale.wav
2018-05-10 15:14:50.702616 [ERR] mod_sndfile.c:204 Error Opening File [Attente_Musicale.wav] [System error : No such file or directory.]

Then its another issue..
 

JamesBorne

Active Member
Jan 24, 2019
294
57
28
Australia
Got this to work fine last night using Westany. Changed from en-us Callie to en-au Madison.
I changed four variables in Advanced > Variables:
default_voice
default_language (well, mine was en and stayed en)
default_dialect
sound_prefix

Then I went to Advanced > XML Editor and changed the languages/en/en.xml file header from:
<language name="en" say-module="en" sound-prefix="$${sounds_dir}/en/us/callie" tts-engine="cepstral" tts-voice="callie">
to:
<language name="en" say-module="en" sound-prefix="$${sounds_dir}/en/au/madison" tts-engine="cepstral" tts-voice="madison">

Lastly, I went to Status > SIP Status and hit Flush Cache and Reload XML

Done.
 
Status
Not open for further replies.