rayo / rayo-server

Rayo Server - A high performance awesomeness server
http://www.rayo.org
Apache License 2.0
43 stars 4 forks source link

Hotword detection #9

Open lpradovera opened 12 years ago

lpradovera commented 12 years ago

Hello, as of now, an Input component getting passed a one-of grammar with only some allowed digits stops execution anyway, returning a NoMatch event. While in some situations this is needed, in some others it would be convenient to not return and just ignore not matching characters from a grammar. Maybe this could be implemented as an option to Input to keep both functionalities.

Asterisk behaves that way with the STREAM FILE dialplan function.

Thanks!

loopingrage commented 12 years ago

I don't understand the issue. Can you provide an example please?

benlangfeld commented 12 years ago

In order to implement output interruption, it is necessary to run an input in parallel with an output. We run the input with a grammar which restricts DTMF. If invalid DTMF is received, the input terminates with <nomatch/>. We don't want the input to terminate, and instead continue to run until it receives valid input, times out, or is stopped.

lpradovera commented 12 years ago

To further clarify, this is the GRXML grammar example I am using: https://gist.github.com/659518c6f941c9a6e47c I would need Input to be able to ignore DTMF input that is not in the one-of. Thanks!

loopingrage commented 12 years ago

Gotcha. That behavior is often referred to as 'hotword' recognition. I'll look into getting it added next week.

wchen commented 12 years ago

revisit this (hotword detection) issue when we visit signal detection work.