FS does not load Chinese speech by default. The Chinese module needs to be compiled first in the SRC of FS.
The unloading (do not restart FS) command is
Make Mod_say_zh-install
Then load the module on the FS console
Load MoD _say_zh
If you want FS to load the module every time it is started, <load module= "Mod_say_zh" > in Autoload_configs/modules will be removed.
The following examples
1. Store the Chinese voice packet in the/usr/local/freeswitch/sounds/en/us/callie directory. Name en. That is the/usr/local/freeswitch/sounds/en/us/callie/zh
2. Edit the file in/usr/local/freeswitch/conf/ivr_menus welcome.xml
1 <include>
2
3 <menu name= "Welcome"
4 greet-long= "Ivr-welcome_to.wav"
5 greet-short= "Ivr-welcome.wav"
6 invalid-sound= "Ivr/ivr-that_was_an_invalid_entry.wav"
7 exit-sound= "Voicemail/vm-goodbye.wav"
8 timeout= "15000"
9 max-fialures= "3"
Ten max-timeouts= "3"
Inter-digit-timeout= "2000"
Digit-len= "4"
Confirm-key= ""
>
15
<entry action= "Menu-exec-app" digits= "0" param= "transfer + XML default"/>
<entry action= "Menu-exec-app" digits= "^ (10[01][09]) $" param= "transfer" XML default "/>
</menu>
</include>
Where Greet-long is the first voice message to enter the IVR, if the user does not enter the information in timeout time, the system will play greet-short information, if the user has not entered the information, the system Close the IVR after playing max-timeouts-1 greet-short voice. If the user enters an error message during timeout time, the system plays Invalid-sound voice.
3. Create a new file in the directory/usr/local/freeswitch/conf/dialplan/default/00_welcome_test.xml
<include>
<extension name= "Zh_test" >
<condition field= "Destination_number" expression= "^ (0920) $" >
<action application= "Set" Data= "Language=zh"/>
<action application= "Answer"/>
<action application= "Sleep" data= "/>"
<action application= "Set" Data= "SOUND_PREFIX=$${SOUNDS_DIR}/EN/US/CALLIE/ZH/8000/IVR"/>
<action application= "IVR" data= "Welcome"/>
</condition>
</extension>
</include>
Where Sound_prefix is the storage path for the Chinese voice packet used in the channel, Sounds_dir is a global variable and is defined in Conf/vars.xml.
After the above three steps have been completed, the execution of reloadxml can be used.