Skip to content

Add voice command support with new voice-assistant entity#120

Merged
zehnm merged 13 commits intomainfrom
feat/voice
Dec 22, 2025
Merged

Add voice command support with new voice-assistant entity#120
zehnm merged 13 commits intomainfrom
feat/voice

Conversation

@zehnm
Copy link
Copy Markdown
Contributor

@zehnm zehnm commented Dec 16, 2025

Support Google voice commands.
The Android TV device needs to support voice commands. This is returned as a feature flag after connection.
This is a preview feature and needs to be enabled in the setup device configuration.

Requirements:

Audio-stream workaround:
For improved text recognition the audio chunks are accumulated, then sent at once to Android TV when the stream ends (releasing the microphone button).
Something is off with chunked streaming and doesn't work reliable yet.

Further changes:

  • Refactor entity handling in driver.py to support multiple entities per Android TV.
    Based on the remote-entity PR Added remote entity in addition of media player entity #90
  • Fix default media type and media information handling if Chromecast is enabled.
  • Fix log and entity state update flooding when using Chromecast feature

Closes #87

WORK IN PROGRESS - NOT YET FULLY WORKING

Refactor entity handling in driver.py to support multiple entities per
Android TV. Based on the remote-entity PR #90

Relates to #87
Refactor audio stream handling for improved text recognition:
accumulate all chunks, then send it at once to Android TV.
Something is off with chunked streaming and doesn't work reliably at all
@zehnm zehnm self-assigned this Dec 16, 2025
@zehnm zehnm added the enhancement New feature or request label Dec 16, 2025
@zehnm zehnm marked this pull request as ready for review December 19, 2025 13:33
@zehnm
Copy link
Copy Markdown
Contributor Author

zehnm commented Dec 22, 2025

Tested with Nvidia Shield TV and Google Chromecast.
Let's hope the other Android TV devices work the same...

@zehnm zehnm merged commit f44014b into main Dec 22, 2025
6 checks passed
@zehnm zehnm deleted the feat/voice branch December 22, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for microphone passthrough

1 participant