Skip to content
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

Passive Listen #181

Merged
merged 2 commits into from
May 9, 2019
Merged

Conversation

aaronchantrill
Copy link
Contributor

@aaronchantrill aaronchantrill commented Apr 14, 2019

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

This allows the user to set an "active_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.
This just adds an additional blank line between the import
statements and the first function declaration to resolve a flake8
requirement (E302 - Surround top-level function and class
definitions with two blank lines.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants