<br><br><div class="gmail_quote">On Tue, Apr 21, 2009 at 5:17 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">sound_prefix?<div><br></div><div>Mike</div><div><div></div><div class="h5"><div></div></div></div></div></blockquote></div><br>I can find no evidence of a sound prefix issue. Here's my language setup from es.xml:<br>
<span style="font-family: courier new,monospace;"><include></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <language name="es" sound-path="$${base_dir}/sounds/es/ar/elianna" tts-engine="cepstral" tts-voice="callie"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <X-PRE-PROCESS cmd="include" data="demo/*.xml"/> <!-- Note: this now grabs whole subdir, previously grabbed only demo.xml --></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <!--voicemail_en_tts is purely implemented with tts, we have the files based one that is the default. --></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <X-PRE-PROCESS cmd="include" data="vm/sounds.xml"/> <!-- vm/tts.xml if you want to use tts and have cepstral --></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </language></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></include></span><br><br><br>base_dir is, of course, "/usr/local/freeswitch" and the sounds/es/ar/elianna/ directory does indeed exist:<br>
<span style="font-family: courier new,monospace;">sh-3.2# cd /usr/local/freeswitch/sounds/es/ar/elianna/</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">sh-3.2# pwd</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/usr/local/freeswitch/sounds/es/ar/elianna</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">sh-3.2# </span><br><br>I also have the digits directories set up identically. I created 8000 and 16000 directories:<br>
<span style="font-family: courier new,monospace;">sh-3.2# cd /usr/local/freeswitch/sounds/es/ar/elianna/digits/8000</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">sh-3.2# ls</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">0.wav</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><snip></span><br style="font-family: courier new,monospace;">
<br>...And...<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">sh-3.2# cd /usr/local/freeswitch/sounds/es/ar/elianna/digits/16000</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">sh-3.2# ls</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">0.wav</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><snip></span><br><br>I'm calling with a headset connected to my Mac, using pa. I created extension 12345 to test this:<br><span style="font-family: courier new,monospace;"> <extension name="spanish test"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <condition field="destination_number" expression="^(12345)$"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <action application="set" data="default_language=es"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action application="say" data="es number iterated $1"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <action application="sleep" data="2000"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action application="say" data="es number iterated 987654321"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <action application="hangup"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </condition></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </extension></span><br><br>And here's the debug log when calling:<br>
<a href="http://pastebin.freeswitch.org/8679">http://pastebin.freeswitch.org/8679</a><br><br>Too much to put it all here, but the highlights are:<br><span style="font-family: courier new,monospace;">EXECUTE portaudio/12345 set(default_language=es)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">2009-04-22 14:00:29 [DEBUG] mod_dptools.c:748 set_function() portaudio/12345 SET [default_language]=[es]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">EXECUTE portaudio/12345 say(es number iterated 12345)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">2009-04-22 14:00:29 [NOTICE] switch_ivr.c:2012 switch_ivr_say() Using SAY Interface es</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">2009-04-22 14:00:29 [NOTICE] mod_say_es.c:504 es_say() Using es callback [tosay: 12345, type: 0, method: 2]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">2009-04-22 14:00:29 [DEBUG] switch_ivr_play_say.c:993 switch_ivr_play_file() Codec Activated L16@8000hz 1 channels 20ms</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">2009-04-22 14:00:30 [DEBUG] switch_ivr_play_say.c:1283 switch_ivr_play_file() done playing file</span><br style="font-family: courier new,monospace;"><br>FYI, I manually added those two NOTICE lines in the source code as a sanity-saver. :)<br>
No matter what, it plays the English files even though it appears that the "es" say module is there and available. No errors or warnings about missing files so unless there's a silent failover I'd have to say that something else is going on.<br>
<br>Thoughts?<br><br>-MC<br><br><br>