Members | Sign In
Legacy MOVI User Community Forum (readonly) > MOVI Question & Answers
avatar

Suppressing the "there is noise in the room" response from MOVI.

posted Sep 16, 2017 02:10:22 by Vic
In the project I am working with, there is ALWAYS going to be noise in the room, I'd like to find a way to suppress that comment from MOVI, nothing found (or I am missing it) anyone have a suggestion on how one might accomplish this?

That said, even with the noisy room (threshold set to 20), the MOVI works amazingly well :-), unlike the speakup I was trying to use that the app would spend (literally) hours trying to balance noise and I was unwilling to give it more time than that (app never came up until it got the noise balanced).

Great job MOVI crew!!!!!!!!!!!!!!!!!
[Last edited Sep 16, 2017 02:15:16]
page   1
4 replies
avatar
GeraldFriedland said Sep 16, 2017 23:32:40
Just add a

recognizer.responses(false); 


to setup(), right after your setThreshold command.

Gerald
avatar
Vic said Sep 18, 2017 21:55:28
Thanks Gerald!

Will give this a go. Am I likely to loose any important messages from the MOVI doing this?

Much Appreciated!
avatar
GeraldFriedland said Sep 19, 2017 15:58:13
Great question! It's not documented anywhere.

Suppressing responses suppresses MOVI's verbal responses to the following events:
530 (NOISE_ALARM ) Too much noise.
501 (SILENCE) Empty sentence (silence or noise).
502 (UNKNOWN_SENTENCE ) Unmatchable result. This happens when two or more trained
sentences could equally by matched to the recognition result.

So if you want to react to these, you need to catch them manually in loop(). So recogizer.poll() still returns NOISE_ALARM for too much noise but without a verbal output on the speaker.

Gerald
avatar
Vic said Sep 19, 2017 23:52:56
Thanks again Gerald,

None of those are critical to what we're doing, so no worries.

Currently the default case just ignores anything not covered, I suppose I could just list whatever comes in that I haven't covered above for reference in case any problems come up.

Login below to reply: