<br><br><div class="gmail_quote">On Fri, Oct 8, 2010 at 8:18 PM, Peter P GMX <span dir="ltr"><<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I tried to install this, but I failed so far<br>
[ERR] switch_ivr_play_say.c:113 Can't find language de.<br>
[WARNING] switch_ivr_play_say.c:339 Macro [voicemail_hello]: '' did<br>
not match any patterns<br>
<br></blockquote></div><br><br>well, you didn't load mod_say_de<br><br>i have EN, DE, FR, HR, IT, RU languages working fine<br><br><br><br>anyhow, to add a new language<br><br>edit freeswitch.xml and add your language within phrase section<br>
<br>e.g.:<br><br> <section name="phrases" description="Speech Phrase Management"><br> <macros><br><span style="color: rgb(255, 0, 0);"> <X-PRE-PROCESS cmd="include" data="lang/de/*.xml"/></span><br>
<X-PRE-PROCESS cmd="include" data="lang/en/*.xml"/><br> <X-PRE-PROCESS cmd="include" data="lang/fr/*.xml"/><br> <X-PRE-PROCESS cmd="include" data="lang/it/*.xml"/><br>
<X-PRE-PROCESS cmd="include" data="lang/hr/*.xml"/><br> <X-PRE-PROCESS cmd="include" data="lang/ru/*.xml"/><br> </macros><br> </section><br><br>
<br>go to:<br>/usr/local/freeswitch/conf/lang<br><br>and create a directory ... e.g. de in your case<br><br>change directory to de (cd de) and copy files from another language e.g. en. <br><br>cp -r ../en/* .<br><br>than rename en.xml into de.xml.<br>
<br>[tculjaga@cxss01 de]$ mv en.xml de.xml<br>edit the xml file in order to fit your needs.<br><br>here is my version:<br><br>[tculjaga@cxss01 de]$ cat de.xml <br><include><br> <language name="de" sound-path="$${sounds_dir}/de/de/helge/" tts-engine="cepstral" tts-voice="callie"><br>
<X-PRE-PROCESS cmd="include" data="demo/*.xml"/><br> <X-PRE-PROCESS cmd="include" data="vm/sounds.xml"/> <br> <X-PRE-PROCESS cmd="include" data="dir/sounds.xml"/> <br>
<!-- <X-PRE-PROCESS cmd="include" data="ivr/ivr_funcs.xml"/> --><br> </language><br></include><br><br>demo/*.xml<br>vm/sounds.xml<br>dir/sounds.xml<br>ivr/ivr_functions.xml<br>
<br>these are files containing macros you will later use in dialplan. You need to have them consistent across all the languages.<br><br>when you done this, its time for your voice files.<br>go to:<br>/usr/local/freeswitch/sounds<br>
<br>copy the directory structure form another language e.g. en, wipe the *.wav files and copy your own files of course with the same naming!<br><br>build and load mod_say_de and thats it ...<br><br><br><br>hope it helps!<br>
<br><br><br><br><br><br><br>