Pedal-Intelligence / saypi-userscript

An independent voice interface for Inflection AI's conversational assistant, Pi
https://www.saypi.ai/
Other
15 stars 4 forks source link

Call doesn't start on Firefox [Moto G Pure, Android 12] #121

Open rosscado opened 1 week ago

rosscado commented 1 week ago

sourcefull1 reports an issue with microphone acquisition/VAD startup with Firefox on Android.

I get the green button, it turns blue when I touch it, but never glows red and turns back to green. I've checked through possible hindrances, allows and permissions. It prompts me for mic permission. I reinstalled Firefox, tried the beta. Same thing. 🤔

His device is a Moto G Pure, running Android 12.

johncrawley commented 6 days ago

I've been looking at this using a virtual device running on Android Studio. So far, I've been running a Pixel 8 Pro with Android 12, and have been unable to reproduce. Note that setting up a custom virtual device (to match screen dimensions) in Android Studio leaves the Google Play app uninstalled without extra config file editing.

Some thoughts so far:

rosscado commented 5 days ago

Great suggestions, John! I recommend we modify our analytics to report microphone connection errors. I was going to suggest the user DM us his Javascript console log, but as you say, it's unavailable on mobile and would likely contain SPI anyway.

rosscado commented 4 days ago

I have added more robust error handling around microphone acquisition. When the application is unable to access the microphone device or create a MicVAD instance from it, rather than failing silently it will:

I have not yet captured the error event in our analytics reporting system, as I think this might be sufficient, but it's something we could do relatively easily if necessary.