<div dir="ltr">Hi Every one,<div><br></div><div><br></div><div>Please help me where i am getting wrong in configuration ,<br><div class="gmail_extra">I have follow all steps that describe in <a href="http://wiki.freeswitch.org/wiki/Mod_pocketsphinx">http://wiki.freeswitch.org/wiki/Mod_pocketsphinx</a> .</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Install Sound files and Grammar files also, </div><div class="gmail_extra">Enable mod Pocketsphinx and java mode , I have not seen any error while loading Free-switch , but Pizza demo greeting listen when dialing a Demo number, but it can recognized my voice , </div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">But i have seen in log <b>detect_speech(pocketsphinx pizza_size undefined)</b></div><div class="gmail_extra"><b><br></b></div>
<div class="gmail_extra">Here is my log </div><div class="gmail_extra">..</div><div class="gmail_extra"><div class="gmail_extra">2013-12-04 14:07:14.223390 [INFO] mod_dialplan_xml.c:558 Processing 1000 <1000>->800800 in context default</div>
<div class="gmail_extra">Dialplan: sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> parsing [default->pizza_demo] continue=false</div><div class="gmail_extra">Dialplan: sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> Regex (PASS) [pizza_demo] destination_number(800800) =~ /^(800800)$/ break=on-false</div>
<div class="gmail_extra">Dialplan: sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> Regex (PASS) [pizza_demo] ${module_exists(mod_spidermonkey)}(true) =~ /true/ break=on-false</div><div class="gmail_extra">
Dialplan: sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> Regex (PASS) [pizza_demo] ${module_exists(mod_pocketsphinx)}(true) =~ /true/ break=on-false</div><div class="gmail_extra">Dialplan: sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> Action javascript(ps_pizza.js)</div>
<div class="gmail_extra">2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:167 (sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>) State Change CS_ROUTING -> CS_EXECUTE</div>
<div class="gmail_extra">2013-12-04 14:07:14.223390 [DEBUG] switch_core_session.c:1351 Send signal sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> [BREAK]</div><div class="gmail_extra">2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:470 (sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>) State ROUTING going to sleep</div>
<div class="gmail_extra">2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:415 (sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>) Running State Change CS_EXECUTE</div><div class="gmail_extra">
2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:477 (sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>) State EXECUTE</div><div class="gmail_extra">2013-12-04 14:07:14.223390 [DEBUG] mod_sofia.c:243 sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> SOFIA EXECUTE</div>
<div class="gmail_extra">2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:209 sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> Standard EXECUTE</div><div class="gmail_extra">
EXECUTE sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> javascript(ps_pizza.js)</div><div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5262 Audio Codec Compare [G729:18:8000:20:8000]/[G722:9:8000:20:64000]</div>
<div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5262 Audio Codec Compare [G729:18:8000:20:8000]/[PCMU:0:8000:20:64000]</div><div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5262 Audio Codec Compare [G729:18:8000:20:8000]/[PCMA:8:8000:20:64000]</div>
<div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5262 Audio Codec Compare [G729:18:8000:20:8000]/[GSM:3:8000:20:13200]</div><div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5262 Audio Codec Compare [GSM:3:8000:20:13200]/[G722:9:8000:20:64000]</div>
<div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5262 Audio Codec Compare [GSM:3:8000:20:13200]/[PCMU:0:8000:20:64000]</div><div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5262 Audio Codec Compare [GSM:3:8000:20:13200]/[PCMA:8:8000:20:64000]</div>
<div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5262 Audio Codec Compare [GSM:3:8000:20:13200]/[GSM:3:8000:20:13200]</div><div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3186 Set Codec sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> GSM/8000 20 ms 160 samples 13200 bits</div>
<div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] switch_core_codec.c:111 sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> Original read codec set to GSM:3</div><div class="gmail_extra">
2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5430 Set 2833 dtmf send/recv payload to 101</div><div class="gmail_extra">2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3445 AUDIO RTP [sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>] 192.168.1.15 port 27068 -> 192.168.1.14 port 50264 codec: 3 ms: 2</div>
<div class="gmail_extra">0</div><div><div>2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3445 AUDIO RTP [sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>] 192.168.1.15 port 27068 -> 192.168.1.14 port 50264 codec: 3 ms: 2</div>
<div>0</div><div>2013-12-04 14:07:14.243351 [DEBUG] switch_rtp.c:2012 Starting timer [soft] 160 bytes per 20ms</div><div>2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3712 Set 2833 dtmf send payload to 101</div><div>2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3718 Set 2833 dtmf receive payload to 101</div>
<div>2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3745 sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> Set rtp dtmf delay to 40</div><div>2013-12-04 14:07:14.243351 [NOTICE] sofia_glue.c:4356 Pre-Answer sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>!</div>
<div>2013-12-04 14:07:14.243351 [DEBUG] switch_channel.c:3364 (sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>) Callstate Change RINGING -> EARLY</div><div>2013-12-04 14:07:14.243351 [DEBUG] mod_sofia.c:866 Local SDP sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>:</div>
<div>v=0</div><div>o=FreeSWITCH 1386167766 1386167767 IN IP4 192.168.1.15</div><div>s=FreeSWITCH</div><div>c=IN IP4 192.168.1.15</div><div>t=0 0</div><div>m=audio 27068 RTP/AVP 3 101</div><div>a=rtpmap:3 GSM/8000</div><div>
a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>a=sendrecv</div><div><br></div><div>2013-12-04 14:07:14.243351 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> [BREAK]</div>
<div>2013-12-04 14:07:14.243351 [DEBUG] sofia.c:5752 Channel sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> entering state [completed][200]</div><div>2013-12-04 14:07:14.243351 [DEBUG] switch_core_session.c:871 Send signal sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> [BREAK]</div>
<div>2013-12-04 14:07:14.243351 [NOTICE] mod_spidermonkey.c:2109 Channel [sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>] has been answered</div><div>2013-12-04 14:07:14.283378 [DEBUG] switch_channel.c:3643 (sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a>) Callstate Change EARLY -> ACTIVE</div>
<div>2013-12-04 14:07:14.283378 [DEBUG] switch_ivr_play_say.c:1319 Codec Activated L16@8000hz 1 channels 20ms</div><div>2013-12-04 14:07:14.345270 [DEBUG] switch_rtp.c:3727 Correct ip/port confirmed.</div><div>2013-12-04 14:07:14.443246 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> [BREAK]</div>
<div>2013-12-04 14:07:14.443246 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> [BREAK]</div><div>2013-12-04 14:07:14.443246 [DEBUG] switch_core_session.c:1016 Send signal sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> [BREAK]</div>
<div>2013-12-04 14:07:14.463380 [DEBUG] sofia.c:5752 Channel sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> entering state [ready][200]</div><div>2013-12-04 14:07:16.563518 [DEBUG] switch_ivr_play_say.c:1722 done playing file /usr/local/freeswitch/sounds/en/us/callie/pizza/GP-Greeting.wav</div>
<div><b>EXECUTE sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> detect_speech(pocketsphinx pizza_size undefined)</b></div><div>2013-12-04 14:07:16.563518 [DEBUG] switch_core_media_bug.c:532 Attaching BUG to sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a></div>
<div>2013-12-04 14:07:17.723606 [DEBUG] switch_core_io.c:493 Setting BUG Codec GSM:3</div><div>EXECUTE sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> detect_speech(resume)</div><div>2013-12-04 14:07:18.003623 [DEBUG] switch_ivr_play_say.c:1319 Codec Activated L16@8000hz 1 channels 20ms</div>
<div>2013-12-04 14:07:20.903377 [DEBUG] switch_ivr_play_say.c:1722 done playing file /usr/local/freeswitch/sounds/en/us/callie/pizza/GP-Size.wav</div><div>EXECUTE sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> detect_speech(resume)</div>
<div>EXECUTE sofia/internal/<a href="http://1000@192.168.1.15:5060">1000@192.168.1.15:5060</a> detect_speech(resume)</div><div>2013-12-04 14:07:23.823564 [DEBUG] switch_ivr_play_say.c:1319 Codec Activated L16@8000hz 1 channels 20ms</div>
</div><div><br></div></div><div class="gmail_extra">Many Thanks</div><div class="gmail_extra">Iffi<br><div class="gmail_quote"><br></div></div></div></div>