-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unmute on hotword #73
Conversation
what if ovos audio is not running or is an older version? we would block forever i'm not so sure about |
First off, it can be anything that has to be processed before the command should be recorded. (and it is pretty likely that future iteration add functionality) This already (without waiting for |
in that case cmd_ready should be set to True once STT has been handled and we start listening for ww again, not set by ovos-audio. you are supposed to be able to talk to your device even over audio playback, this is usually in the context of music but short sounds should be no different I don't oppose the introduction of the variable per se, just the dependency on ovos-audio being the only thing that turns if back to True |
I wouldn't oppose config options to change this behaviour either (defaulting to False), for example to disable this during TTS execution. it's another case i think we should be able to interrupt the voice assistant, but if it's configurable and theres a use case I'm all for more flexibility for downstream |
i guess you mix things up here. Before cmd_ready is set to |
What are the suggestions around a config key? |
But generally, yes, suboptimal. The destination check is also problematic, since with a |
Rewrote the implementation:
if no sound is played the loop directly continues with |
Forces an unmute
"force_unmute": True
playing a sound in the audio callback when a hotword is detected. The counterpart PR OpenVoiceOS/ovos-audio#40 will be joiningovos-audio
This introduces another voice loop attribute:
cmd_ready
that is normallyFalse
and gets set when a sound is finished playing (or no sound payed at all). It gets resetted after a command is spoken. With that a continuation of the loop is granted while doing things that have to be done (in this case play sound - but could be X).Both PRs take advantage of the
muted
flag when polling the volume: OpenVoiceOS/ovos-PHAL-plugin-alsa#22