TheTimeWalker / wallpanel-android

WallPanel is an Android application for Web Based Dashboards and Home Automation Platforms
https://wallpanel.xyz
Apache License 2.0
406 stars 42 forks source link

[BUG] Microphone can't be accessed in webview #85

Open x9prototype opened 1 year ago

x9prototype commented 1 year ago

Your feature request. Please describe. Allow the device's microphone to be used inside the webview. This can be helpful for websites that take in audio input such as Home Assistant. As of Home Assistant v2023.02 there is a new assistant feature, and as of v2023.07 there is an action button that allows you to one-tap and talk to the assistant. Right now the webview doesn't have microphone permissions so the interaction fails and a user must default to keyboard input, which is less intuitive for a wall tablet.

EDIT: It seems that audio capture is already implemented in:

xyz/wallpanel/app/utils/InternalWebChromeClient.kt

not sure why this doesn't work on both Samsung Tab A9s as well as the Pixel C

x9prototype commented 1 year ago

Been using https://webcammictest.com/check-mic.html for testing as its easier then setting up a HA instance

stevetheman1031 commented 1 year ago

Not that I can do much to help but will let you know that this does not work on Galaxy tab 7 FE or the Galaxy Note 20 Ultra 5G

eporsche commented 8 months ago

+1

Microphone works with the Home Assistant Companion App and Chrome. Unfortunately it does not work in Wallpanel.

janstadt commented 4 months ago

Any chance we could get this exposed? Currently running ip webcam in the background for STT but would like to eliminate that as a requirement and use wallpanel as a mic.