Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Relative timeout in Session.collectInput?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mszlazak at aol.com
Guest





PostPosted: Sat Nov 15, 2008 2:31 pm    Post subject: [Freeswitch-users] Relative timeout in Session.collectInput? Reply with quote

Session.collectInput looks like it has a fixed timeout setting which blocks the channel until the timeout expires.

I've been informed that appears to be the case from a brief examination of how speech is collected. SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback
seems to use a fixed timeout to cancel recording. ??

Is it possible to set-up a "relative" timeout which is based on the time from when the last valid sound was recognized as in choosing toppings from a list of 20 toppings in the pizza demo? This situation involves an indeterminate number of valid sounds (toppings) and thus is unlike the dtmf example give in http://wiki.freeswitch.org/wiki/Session_collectInput where a counter in the callback is also used to determine when to unblock the channel.

Mark.


Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!
Back to top
anthony.minessale at g...
Guest





PostPosted: Sun Nov 16, 2008 11:47 am    Post subject: [Freeswitch-users] Relative timeout in Session.collectInput? Reply with quote

The speech detector never stops working. The collect input just pauses to wait for some input.
It can catch the event any time a file is playing or that collect input is called.


On Sat, Nov 15, 2008 at 1:19 PM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:
Session.collectInput looks like it has a fixed timeout setting which blocks the channel until the timeout expires.

I've been informed that appears to be the case from a brief examination of how speech is collected. SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback
seems to use a fixed timeout to cancel recording. ??

Is it possible to set-up a "relative" timeout which is based on the time from when the last valid sound was recognized as in choosing toppings from a list of 20 toppings in the pizza demo? This situation involves an indeterminate number of valid sounds (toppings) and thus is unlike the dtmf example give in http://wiki.freeswitch.org/wiki/Session_collectInput where a counter in the callback is also used to determine when to unblock the channel.

Mark.



Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
mszlazak at aol.com
Guest





PostPosted: Mon Nov 17, 2008 3:28 am    Post subject: [Freeswitch-users] Relative timeout in Session.collectInput? Reply with quote

I'll follow up more on this but before I do, is their a need to re-sample my audio for pocketsphinx?
My soft-phone is X-lite and the codec is ALC883.





-----Original Message-----
From: Anthony Minessale <anthony.minessale@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Sent: Sun, 16 Nov 2008 8:40 am
Subject: Re: [Freeswitch-users] Relative timeout in Session.collectInput?

The speech detector never stops working. The collect input just pauses to wait for some input.
It can catch the event any time a file is playing or that collect input is called.


On Sat, Nov 15, 2008 at 1:19 PM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:
Session.collectInput looks like it has a fixed timeout setting which blocks the channel until the timeout expires.

I've been informed that appears to be the case from a brief examination of how speech is collected. SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback
seems to use a fixed timeout to cancel recording. ??

Is it possible to set-up a "relative" timeout which is based on the time from when the last valid sound was recognized as in choosing toppings from a list of 20 toppings in the pizza demo? This situation involves an indeterminate number of valid sounds (toppings) and thus is unlike the dtmf example give in http://wiki.freeswitch.org/wiki/Session_collectInput where a counter in the callback is also used to determine when to unblock the channel.

Mark.



Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

Quote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!
Back to top
mszlazak at aol.com
Guest





PostPosted: Mon Nov 17, 2008 5:26 pm    Post subject: [Freeswitch-users] Relative timeout in Session.collectInput? Reply with quote

I'm suspecting that one of my pauses (or something else), as I'm saying my topping choices, is being interpreted as the end of my choices.

I've tried adjusting the timeout argument value of collectInput but that doesn't seem to do anything.

So, I'm left wondering what's causing my choices to be truncated and thus collectInput handles only a part of the toppings ordered.

It doesn't seem like the speech recognizer is only recognizing one topping at a time as an event that's caught by collectInput since I have gotten recognition of more than one topping but usually not that many more.

Nickolay Shmyrev at CMU Sphinx Help Forum thought there maybe some timeout involved because passing silence to the recognizer wasn't a good idea and suggested a relative timeout.

So what's being passed to the recognizer or is there something else going on?

Mark.

-----Original Message-----From: Anthony Minessale <anthony.minessale@gmail.com>

To: freeswitch-users@lists.freeswitch.org
Sent: Sun, 16 Nov 2008 8:40 am
Subject: Re: [Freeswitch-users] Relative timeout in Session.collectInput?

The speech detector never stops working. The collect input just pauses to wait for some input.
It can catch the event any time a file is playing or that collect input is called.


On Sat, Nov 15, 2008 at 1:19 PM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:
Session.collectInput looks like it has a fixed timeout setting which blocks the channel until the timeout expires.

I've been informed that appears to be the case from a brief examination of how speech is collected. SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback
seems to use a fixed timeout to cancel recording. ??

Is it possible to set-up a "relative" timeout which is based on the time from when the last valid sound was recognized as in choosing toppings from a list of 20 toppings in the pizza demo? This situation involves an indeterminate number of valid sounds (toppings) and thus is unlike the dtmf example give in http://wiki.freeswitch.org/wiki/Session_collectInput where a counter in the callback is also used to determine when to unblock the channel.

Mark.



Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

Quote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!
Back to top
anthony.minessale at g...
Guest





PostPosted: Mon Nov 17, 2008 5:41 pm    Post subject: [Freeswitch-users] Relative timeout in Session.collectInput? Reply with quote

maybe its the detection of talk stop.
are you pasing between your toppings.
try saying them all very fast with no pause.
It may be the pause between utterances that is catching you.
the config has params.

threshold (default 400): higher the number louder you have to talk to be considered "talking"
silence-hits (default 35): number of hits below threshold before detecting "stop talking"

On Mon, Nov 17, 2008 at 4:23 PM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:

I'm suspecting that one of my pauses (or something else), as I'm saying my topping choices, is being interpreted as the end of my choices.

I've tried adjusting the timeout argument value of collectInput but that doesn't seem to do anything.

So, I'm left wondering what's causing my choices to be truncated and thus collectInput handles only a part of the toppings ordered.

It doesn't seem like the speech recognizer is only recognizing one topping at a time as an event that's caught by collectInput since I have gotten recognition of more than one topping but usually not that many more.

Nickolay Shmyrev at CMU Sphinx Help Forum thought there maybe some timeout involved because passing silence to the recognizer wasn't a good idea and suggested a relative timeout.

So what's being passed to the recognizer or is there something else going on?

Mark.

-----Original Message-----From: Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Sent: Sun, 16 Nov 2008 8:40 am
Subject: Re: [Freeswitch-users] Relative timeout in Session.collectInput?



The speech detector never stops working. The collect input just pauses to wait for some input.
It can catch the event any time a file is playing or that collect input is called.


On Sat, Nov 15, 2008 at 1:19 PM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:
Session.collectInput looks like it has a fixed timeout setting which blocks the channel until the timeout expires.

I've been informed that appears to be the case from a brief examination of how speech is collected. SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback
seems to use a fixed timeout to cancel recording. ??

Is it possible to set-up a "relative" timeout which is based on the time from when the last valid sound was recognized as in choosing toppings from a list of 20 toppings in the pizza demo? This situation involves an indeterminate number of valid sounds (toppings) and thus is unlike the dtmf example give in http://wiki.freeswitch.org/wiki/Session_collectInput where a counter in the callback is also used to determine when to unblock the channel.

Mark.



Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

Quote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
mszlazak at aol.com
Guest





PostPosted: Tue Nov 18, 2008 3:05 pm    Post subject: [Freeswitch-users] Relative timeout in Session.collectInput? Reply with quote

Yup, I tried different settings for dft_min and dft_confirm before but did not understand what they meant.
Back then I guessed that "dft" meant "discrete Fourier transform" not "default" and these variables were cut off frequencies of a filter but that did not quite make sense.
For instance, in the "yes/no" recognition part of the demo, one variable was set lower than the other but not in other places.

Thanks for clearing up their meanings.

I've played with values for those variables more based on the output and it does help.

However, I'm and was getting recognition of "strange patterns" that all start with 2222 in superscript like:

2222
2222||||?
2222h
2222p?o??
2222h\|
2222||||?

What's going on here and what can I do about it?

Thanks.
Mark.





-----Original Message-----
From: Anthony Minessale <anthony.minessale@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Sent: Mon, 17 Nov 2008 2:39 pm
Subject: Re: [Freeswitch-users] Relative timeout in Session.collectInput?

maybe its the detection of talk stop.
are you pasing between your toppings.
try saying them all very fast with no pause.
It may be the pause between utterances that is catching you.
the config has params.

threshold (default 400): higher the number louder you have to talk to be considered "talking"
silence-hits (default 35): number of hits below threshold before detecting "stop talking"

On Mon, Nov 17, 2008 at 4:23 PM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:

I'm suspecting that one of my pauses (or something else), as I'm saying my topping choices, is being interpreted as the end of my choices.

I've tried adjusting the timeout argument value of collectInput but that doesn't seem to do anything.

So, I'm left wondering what's causing my choices to be truncated and thus collectInput handles only a part of the toppings ordered.

It doesn't seem like the speech recognizer is only recognizing one topping at a time as an event that's caught by collectInput since I have gotten recognition of more than one topping but usually not that many more.

Nickolay Shmyrev at CMU Sphinx Help Forum thought there maybe some timeout involved because passing silence to the recognizer wasn't a good idea and suggested a relative timeout.

So what's being passed to the recognizer or is there something else going on?

Mark.

-----Original Message-----From: Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Sent: Sun, 16 Nov 2008 8:40 am
Subject: Re: [Freeswitch-users] Relative timeout in Session.collectInput?



The speech detector never stops working. The collect input just pauses to wait for some input.
It can catch the event any time a file is playing or that collect input is called.


On Sat, Nov 15, 2008 at 1:19 PM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:
Session.collectInput looks like it has a fixed timeout setting which blocks the channel until the timeout expires.

I've been informed that appears to be the case from a brief examination of how speech is collected. SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback
seems to use a fixed timeout to cancel recording. ??

Is it possible to set-up a "relative" timeout which is based on the time from when the last valid sound was recognized as in choosing toppings from a list of 20 toppings in the pizza demo? This situation involves an indeterminate number of valid sounds (toppings) and thus is unlike the dtmf example give in http://wiki.freeswitch.org/wiki/Session_collectInput where a counter in the callback is also used to determine when to unblock the channel.

Mark.



Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

Quote:
_______________________________________________

Freeswitch-users mailing list

Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org



Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

Quote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Instant access to the latest & most popular FREE games while you browse with the Games Toolbar - Download Now!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services