Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This allows the user to set an "passive_listen" value in profile.yml
to True (or "Yes") in order to change Naomi's listening behavior.
Normally, you speak Naomi's keyphrase, Naomi responds with a high
beep noise, then you speak your query, Naomi response with a low
beep noise, then processes the request.
Using passive listen, Naomi listens for your voice, then scans the
entire block of audio for the keyword. If it detects the keyword,
it passes the audio to the active listener, then finally returns
the transcription.
This pull request also fixes the issue that at some point the low
beep got replaced with the high beep. I think it was when I was
working on the Voice Activity Detector plugin.
Related Issue
Issue #48 - Passive Listening for commands
Motivation and Context
This allows the user to interact with Naomi more naturally, by directly asking questions, rather than stating the wakeword, waiting for Naomi to answer, then stating the question.
How Has This Been Tested?
Tested on Raspberry Pi 3B+ running Raspbian Stretch using Pocketsphinx for both passive and active listening, WebRTC VAD for voice activity detection, and Flite SLT for text to speech.
Types of changes
Checklist: