home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.07k stars 587 forks source link

Add support for voice command action #4331

Closed joseph39 closed 1 month ago

joseph39 commented 1 month ago

Summary

Adding the voice command support so that Assist can be triggered via a headset. Notably the change includes adding the voice command intent for Assist, being able to wake up from it even when the screen is off, and stopping the current playing audio only when the activity is destroyed rather than paused, so that it doesn't interfere with screen turning off half way through the playback.

Screenshots

N/A

Link to pull request in Documentation repository

I don't think a doc update is needed?

Any other notes

This change was tested with/without the voice command and, other than the change in behavior where the playback will continue even with the screen turning off halfway, I've verified that no other UX regression is introduced.