[Freeswitch-users] Mod pocketsphinx in Free-switch not recognized vice
Muhammad Abdullah
abdullah at smonte.com
Thu Dec 5 15:59:23 MSK 2013
Hi Every one,
Please help me where i am getting wrong in configuration ,
I have follow all steps that describe in
http://wiki.freeswitch.org/wiki/Mod_pocketsphinx .
Install Sound files and Grammar files also,
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 ,
But i have seen in log *detect_speech(pocketsphinx pizza_size undefined)*
Here is my log
..
2013-12-04 14:07:14.223390 [INFO] mod_dialplan_xml.c:558 Processing 1000
<1000>->800800 in context default
Dialplan: sofia/internal/1000 at 192.168.1.15:5060 parsing
[default->pizza_demo] continue=false
Dialplan: sofia/internal/1000 at 192.168.1.15:5060 Regex (PASS) [pizza_demo]
destination_number(800800) =~ /^(800800)$/ break=on-false
Dialplan: sofia/internal/1000 at 192.168.1.15:5060 Regex (PASS) [pizza_demo]
${module_exists(mod_spidermonkey)}(true) =~ /true/ break=on-false
Dialplan: sofia/internal/1000 at 192.168.1.15:5060 Regex (PASS) [pizza_demo]
${module_exists(mod_pocketsphinx)}(true) =~ /true/ break=on-false
Dialplan: sofia/internal/1000 at 192.168.1.15:5060 Action
javascript(ps_pizza.js)
2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:167
(sofia/internal/1000 at 192.168.1.15:5060) State Change CS_ROUTING ->
CS_EXECUTE
2013-12-04 14:07:14.223390 [DEBUG] switch_core_session.c:1351 Send signal
sofia/internal/1000 at 192.168.1.15:5060 [BREAK]
2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:470
(sofia/internal/1000 at 192.168.1.15:5060) State ROUTING going to sleep
2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:415
(sofia/internal/1000 at 192.168.1.15:5060) Running State Change CS_EXECUTE
2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:477
(sofia/internal/1000 at 192.168.1.15:5060) State EXECUTE
2013-12-04 14:07:14.223390 [DEBUG] mod_sofia.c:243 sofia/internal/
1000 at 192.168.1.15:5060 SOFIA EXECUTE
2013-12-04 14:07:14.223390 [DEBUG] switch_core_state_machine.c:209
sofia/internal/1000 at 192.168.1.15:5060 Standard EXECUTE
EXECUTE sofia/internal/1000 at 192.168.1.15:5060 javascript(ps_pizza.js)
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]
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]
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]
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]
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]
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]
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]
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]
2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3186 Set Codec
sofia/internal/1000 at 192.168.1.15:5060 GSM/8000 20 ms 160 samples 13200 bits
2013-12-04 14:07:14.243351 [DEBUG] switch_core_codec.c:111 sofia/internal/
1000 at 192.168.1.15:5060 Original read codec set to GSM:3
2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:5430 Set 2833 dtmf
send/recv payload to 101
2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3445 AUDIO RTP
[sofia/internal/1000 at 192.168.1.15:5060] 192.168.1.15 port 27068 ->
192.168.1.14 port 50264 codec: 3 ms: 2
0
2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3445 AUDIO RTP
[sofia/internal/1000 at 192.168.1.15:5060] 192.168.1.15 port 27068 ->
192.168.1.14 port 50264 codec: 3 ms: 2
0
2013-12-04 14:07:14.243351 [DEBUG] switch_rtp.c:2012 Starting timer [soft]
160 bytes per 20ms
2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3712 Set 2833 dtmf send
payload to 101
2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3718 Set 2833 dtmf receive
payload to 101
2013-12-04 14:07:14.243351 [DEBUG] sofia_glue.c:3745 sofia/internal/
1000 at 192.168.1.15:5060 Set rtp dtmf delay to 40
2013-12-04 14:07:14.243351 [NOTICE] sofia_glue.c:4356 Pre-Answer
sofia/internal/1000 at 192.168.1.15:5060!
2013-12-04 14:07:14.243351 [DEBUG] switch_channel.c:3364 (sofia/internal/
1000 at 192.168.1.15:5060) Callstate Change RINGING -> EARLY
2013-12-04 14:07:14.243351 [DEBUG] mod_sofia.c:866 Local SDP sofia/internal/
1000 at 192.168.1.15:5060:
v=0
o=FreeSWITCH 1386167766 1386167767 IN IP4 192.168.1.15
s=FreeSWITCH
c=IN IP4 192.168.1.15
t=0 0
m=audio 27068 RTP/AVP 3 101
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
2013-12-04 14:07:14.243351 [DEBUG] switch_core_session.c:1016 Send signal
sofia/internal/1000 at 192.168.1.15:5060 [BREAK]
2013-12-04 14:07:14.243351 [DEBUG] sofia.c:5752 Channel sofia/internal/
1000 at 192.168.1.15:5060 entering state [completed][200]
2013-12-04 14:07:14.243351 [DEBUG] switch_core_session.c:871 Send signal
sofia/internal/1000 at 192.168.1.15:5060 [BREAK]
2013-12-04 14:07:14.243351 [NOTICE] mod_spidermonkey.c:2109 Channel
[sofia/internal/1000 at 192.168.1.15:5060] has been answered
2013-12-04 14:07:14.283378 [DEBUG] switch_channel.c:3643 (sofia/internal/
1000 at 192.168.1.15:5060) Callstate Change EARLY -> ACTIVE
2013-12-04 14:07:14.283378 [DEBUG] switch_ivr_play_say.c:1319 Codec
Activated L16 at 8000hz 1 channels 20ms
2013-12-04 14:07:14.345270 [DEBUG] switch_rtp.c:3727 Correct ip/port
confirmed.
2013-12-04 14:07:14.443246 [DEBUG] switch_core_session.c:1016 Send signal
sofia/internal/1000 at 192.168.1.15:5060 [BREAK]
2013-12-04 14:07:14.443246 [DEBUG] switch_core_session.c:1016 Send signal
sofia/internal/1000 at 192.168.1.15:5060 [BREAK]
2013-12-04 14:07:14.443246 [DEBUG] switch_core_session.c:1016 Send signal
sofia/internal/1000 at 192.168.1.15:5060 [BREAK]
2013-12-04 14:07:14.463380 [DEBUG] sofia.c:5752 Channel sofia/internal/
1000 at 192.168.1.15:5060 entering state [ready][200]
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
*EXECUTE sofia/internal/1000 at 192.168.1.15:5060
<http://1000@192.168.1.15:5060> detect_speech(pocketsphinx pizza_size
undefined)*
2013-12-04 14:07:16.563518 [DEBUG] switch_core_media_bug.c:532 Attaching
BUG to sofia/internal/1000 at 192.168.1.15:5060
2013-12-04 14:07:17.723606 [DEBUG] switch_core_io.c:493 Setting BUG Codec
GSM:3
EXECUTE sofia/internal/1000 at 192.168.1.15:5060 detect_speech(resume)
2013-12-04 14:07:18.003623 [DEBUG] switch_ivr_play_say.c:1319 Codec
Activated L16 at 8000hz 1 channels 20ms
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
EXECUTE sofia/internal/1000 at 192.168.1.15:5060 detect_speech(resume)
EXECUTE sofia/internal/1000 at 192.168.1.15:5060 detect_speech(resume)
2013-12-04 14:07:23.823564 [DEBUG] switch_ivr_play_say.c:1319 Codec
Activated L16 at 8000hz 1 channels 20ms
Many Thanks
Iffi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131205/1ee7012f/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list