In Firefox on android with piper voice, hangs on reuse.
In Firefox, I've configured this extension to use piper voice (amy).
- Read aloud page (it works).
- Use stop button or wait for reading to finish.
- Close extension with back arrow.
- Read aloud (same page, or other page).
- Extension opens itself, pause/play button displays pause, but all text is selected and nothing is read. I can use back arrow to leave extension.
- I need to stop reading (with stop button), close piper tab, and only then invoke read aloud extension.
I had some similar types of issues, switching to Firefox Beta, and flipping dom.suspend_inactive.enabled seems to have resolved it. Maybe adding a whitelist could help but not sure there's a web API for this so a proper fix may be way off, short of adding a whitelist to support the extension in a lgither-touch way.
My issues were admittedly a little different, more like "Piper only renders speech when the ttstool tab is in the foreground."
Unfortunately on mobile devices the background-page restrictions limits what we can do here. Piper voices need to run in a separate tab since it requires cross origin isolation to perform all the sophisticated on-device AI inferencing stuff. Support for Piper voices on Android is most definitely best-effort right now; most likely doesn't work, but fun to just try out.
Edit: Come to think of it, if we embed the Piper frame directly in the popup window, might work.