Skip to content

Add wake word phrase to voice assistant start command#6290

Merged
jesserockz merged 1 commit into
devfrom
jesserockz-2024-039
Mar 5, 2024
Merged

Add wake word phrase to voice assistant start command#6290
jesserockz merged 1 commit into
devfrom
jesserockz-2024-039

Conversation

@jesserockz
Copy link
Copy Markdown
Member

@jesserockz jesserockz commented Feb 27, 2024

What does this implement/fix?

This sends the on device wake word phrase to Home Assistant so it can then "block" multiple assistants from activating at the same time within a small timeframe.

Related PRs:

Types of changes

  • Bugfix (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 not work as expected)
  • Other

Related issue or feature (if applicable): fixes

Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#

Test Environment

  • ESP32
  • ESP32 IDF
  • ESP8266
  • RP2040
  • BK72xx
  • RTL87xx

Example entry for config.yaml:

# Example config.yaml
micro_wake_word:
  on_wake_word_detected:
    - voice_assistant.start:
        wake_word: !lambda return wake_word;
  model: okay_nabu

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

@probot-esphome
Copy link
Copy Markdown

Hey there @OttoWinter, mind taking a look at this pull request as it has been labeled with an integration (api) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@probot-esphome
Copy link
Copy Markdown

Hey there @kahrendt, mind taking a look at this pull request as it has been labeled with an integration (micro_wake_word) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

Comment thread esphome/components/voice_assistant/voice_assistant.h
@jesserockz jesserockz merged commit 01fc057 into dev Mar 5, 2024
@jesserockz jesserockz deleted the jesserockz-2024-039 branch March 5, 2024 18:41
@jesserockz jesserockz mentioned this pull request Mar 5, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants