[Freeswitch-users] FreeSwitch - PcoketSphinx Prompt Playback & Recognition Issue...

Moiz Chinoy moizchinoy at gmail.com
Wed Feb 18 23:29:41 PST 2009


Thanks for your help....

I have downloaded the latest build and tried...

Often in the log I see cryptic characters in the XML part returned by
ASR. Is it silence or nose??
If yes is there any way we can control it?

Prompt playback problem is still there...
So far I am only able to get TAKEOUT and YES recognized and then the
application crashes with Windows error:
AppName: freeswitch.exe	 AppVer: 0.0.0.0	 ModName: sphinxbase.dll
ModVer: 0.0.0.0	 Offset: 00053791

Below is log snippet:
o=FreeSWITCH 1235002217 1235002218 IN IP4 192.168.16.63
s=FreeSWITCH
c=IN IP4 192.168.16.63
t=0 0
m=audio 25190 RTP/AVP 3 101
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

2009-02-19 11:10:07 [DEBUG] switch_core_session.c:523
switch_core_session_perform_receive_message() Send signal
sofia/internal/1000 at 192.168.16.63 [BREAK]
2009-02-19 11:10:07 [NOTICE] mod_spidermonkey.c:2041 session_answer()
Channel [sofia/internal/1000 at 192.168.16.63] has been answered
2009-02-19 11:10:07 [DEBUG] switch_channel.c:179
switch_channel_audio_sync() sofia/internal/1000 at 192.168.16.63 receive
message [AUDIO_SYNC]
2009-02-19 11:10:07 [DEBUG] switch_ivr_play_say.c:989
switch_ivr_play_file() Codec Activated L16 at 8000hz 1 channels 20ms
2009-02-19 11:10:07 [DEBUG] switch_core_io.c:652
switch_core_session_write_frame() sofia/internal/1000 at 192.168.16.63
receive message [TRANSCODING_NECESSARY]
2009-02-19 11:10:07 [DEBUG] sofia.c:2725 sofia_handle_sip_i_state()
Channel sofia/internal/1000 at 192.168.16.63 entering state [completed]
2009-02-19 11:10:07 [DEBUG] sofia.c:2725 sofia_handle_sip_i_state()
Channel sofia/internal/1000 at 192.168.16.63 entering state [ready]
2009-02-19 11:10:07 [INFO] switch_rtp.c:1422 rtp_common_read() Auto
Changing port from 127.0.0.1:49166 to 192.168.16.63:49166
2009-02-19 11:10:09 [DEBUG] switch_ivr_play_say.c:1279
switch_ivr_play_file() done playing file
2009-02-19 11:10:12 [DEBUG] switch_core_media_bug.c:297
switch_core_media_bug_add() Attaching BUG to
sofia/internal/1000 at 192.168.16.63
2009-02-19 11:10:12 [DEBUG] switch_core_io.c:234
switch_core_session_read_frame() sofia/internal/1000 at 192.168.16.63
receive message [TRANSCODING_NECESSARY]
2009-02-19 11:10:12 [DEBUG] switch_ivr_play_say.c:989
switch_ivr_play_file() Codec Activated L16 at 8000hz 1 channels 20ms
2009-02-19 11:10:15 [DEBUG] switch_ivr_play_say.c:1279
switch_ivr_play_file() done playing file
2009-02-19 11:10:15 [DEBUG] switch_core_io.c:234
switch_core_session_read_frame() sofia/internal/1000 at 192.168.16.63
receive message [TRANSCODING_NECESSARY]
2009-02-19 11:10:18 [DEBUG] mod_pocketsphinx.c:387
pocketsphinx_asr_get_results() Recognized: TAKEOUT, Score: 62
2009-02-19 11:10:18 [DEBUG] js_modules/SpeechTools.jm:150 console_log() ----XML:
<interpretation grammar="pizza_order" score="62">
  <result name="match">TAKEOUT</result>
  <input>TAKEOUT</input>
</interpretation>
2009-02-19 11:10:18 [DEBUG] js_modules/SpeechTools.jm:150
console_log() ----Heard [TAKEOUT]
2009-02-19 11:10:18 [DEBUG] js_modules/SpeechTools.jm:150
console_log() ----Hit score 62/40/70
2009-02-19 11:10:18 [INFO] js_modules/SpeechTools.jm:150 console_log()
----TAKEOUT
2009-02-19 11:10:18 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----We need to confirm this one
2009-02-19 11:10:18 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [1] [0] TAKEOUT =~ [Delivery:::Delivery]
2009-02-19 11:10:18 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [1] [1] TAKEOUT =~ [Takeout:::Pickup]
2009-02-19 11:10:18 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Adding Pickup
2009-02-19 11:10:18 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [1] [2] TAKEOUT =~ [Pickup:::Pickup]
2009-02-19 11:10:19 [DEBUG] js_modules/SpeechTools.jm:109
console_log() Unloading grammar pizza_order
2009-02-19 11:10:21 [DEBUG] switch_ivr_play_say.c:989
switch_ivr_play_file() Codec Activated L16 at 8000hz 1 channels 20ms
2009-02-19 11:10:22 [DEBUG] mod_pocketsphinx.c:387
pocketsphinx_asr_get_results() Recognized: ‎‎‎‎, Score: 100
2009-02-19 11:10:22 [DEBUG] js_modules/SpeechTools.jm:150 console_log() ----XML:
<interpretation grammar="pizza_yesno" score="100">
  <result name="match">‎‎‎‎</result>
  <input>‎‎‎‎</input>
</interpretation>
2009-02-19 11:10:22 [DEBUG] js_modules/SpeechTools.jm:150
console_log() ----Heard [‎‎‎‎]
2009-02-19 11:10:22 [DEBUG] js_modules/SpeechTools.jm:150
console_log() ----Hit score 100/40/20
2009-02-19 11:10:22 [INFO] js_modules/SpeechTools.jm:150 console_log() ----‎‎‎‎
2009-02-19 11:10:22 [DEBUG] switch_ivr_play_say.c:1279
switch_ivr_play_file() done playing file
2009-02-19 11:10:22 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [0] [0] ‎‎‎‎ =~ [^yes:::yes]
2009-02-19 11:10:22 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [0] [1] ‎‎‎‎ =~ [^correct:::yes]
2009-02-19 11:10:22 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [0] [2] ‎‎‎‎ =~ [^no:::no]
2009-02-19 11:10:22 [DEBUG] switch_core_io.c:234
switch_core_session_read_frame() sofia/internal/1000 at 192.168.16.63
receive message [TRANSCODING_NECESSARY]
2009-02-19 11:10:23 [DEBUG] mod_pocketsphinx.c:343
pocketsphinx_asr_resume() Manually Resuming
2009-02-19 11:10:23 [DEBUG] switch_ivr_play_say.c:989
switch_ivr_play_file() Codec Activated L16 at 8000hz 1 channels 20ms
2009-02-19 11:10:25 [DEBUG] switch_ivr_play_say.c:1279
switch_ivr_play_file() done playing file
2009-02-19 11:10:25 [DEBUG] switch_core_io.c:234
switch_core_session_read_frame() sofia/internal/1000 at 192.168.16.63
receive message [TRANSCODING_NECESSARY]
2009-02-19 11:10:26 [DEBUG] switch_ivr_play_say.c:989
switch_ivr_play_file() Codec Activated L16 at 8000hz 1 channels 20ms
2009-02-19 11:10:29 [DEBUG] switch_ivr_play_say.c:1279
switch_ivr_play_file() done playing file
2009-02-19 11:10:29 [DEBUG] switch_core_io.c:234
switch_core_session_read_frame() sofia/internal/1000 at 192.168.16.63
receive message [TRANSCODING_NECESSARY]
2009-02-19 11:10:31 [DEBUG] switch_ivr_play_say.c:989
switch_ivr_play_file() Codec Activated L16 at 8000hz 1 channels 20ms
2009-02-19 11:10:32 [DEBUG] mod_pocketsphinx.c:387
pocketsphinx_asr_get_results() Recognized: YES, Score: 100
2009-02-19 11:10:32 [DEBUG] js_modules/SpeechTools.jm:150 console_log() ----XML:
<interpretation grammar="pizza_yesno" score="100">
  <result name="match">YES</result>
  <input>YES</input>
</interpretation>
2009-02-19 11:10:32 [DEBUG] js_modules/SpeechTools.jm:150
console_log() ----Heard [YES]
2009-02-19 11:10:32 [DEBUG] js_modules/SpeechTools.jm:150
console_log() ----Hit score 100/40/20
2009-02-19 11:10:32 [INFO] js_modules/SpeechTools.jm:150 console_log() ----YES
2009-02-19 11:10:32 [DEBUG] switch_ivr_play_say.c:1279
switch_ivr_play_file() done playing file
2009-02-19 11:10:32 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [0] [0] YES =~ [^yes:::yes]
2009-02-19 11:10:32 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Adding yes
2009-02-19 11:10:32 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [0] [1] YES =~ [^correct:::yes]
2009-02-19 11:10:32 [DEBUG] js_modules/SpeechTools.jm:365
console_log() ----Testing [0] [2] YES =~ [^no:::no]
2009-02-19 11:10:32 [DEBUG] switch_core_io.c:234
switch_core_session_read_frame() sofia/internal/1000 at 192.168.16.63
receive message [TRANSCODING_NECESSARY]
2009-02-19 11:10:33 [DEBUG] js_modules/SpeechTools.jm:109
console_log() Unloading grammar pizza_yesno



On Wed, Feb 18, 2009 at 11:48 PM, Michael Collins <msc at freeswitch.org> wrote:
> On Wed, Feb 18, 2009 at 7:55 AM, Brian West <brian at freeswitch.org> wrote:
>> Please go get an SVN client for windows... svn update vs downloading the
>> tarball every day will save bandwidth.  ;)
>> /b
>
> Use this for windows:
> http://tortoisesvn.tigris.org/
>
> -MC
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Regards,
Moiz Chinoy.
Mobile: 055-8527492



More information about the Freeswitch-users mailing list