Repository navigation
fix(web): voice on phones that never mark speech final; say up front when voice is unsupported - #3
Merged
Conversation
…front when a browser can't do voice Zach tested rosetta-shell.arcs.care/voice in Comet and Chrome on a phone: "voice not available". Three fixes: - Keep every word heard (final plus the latest partial). Phones often end recognition before marking text final, so the page showed the words and then said "Heard nothing". Simulated: the old page lost the words, the new one translates and speaks them. - Unlock read-aloud inside the tap (iOS only speaks from a user gesture). - When the browser has no speech recognition (Comet, Firefox, every non-Safari iPhone browser), say so on load and point to typing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FBNUQdkatVyamBSDKM3qUB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Zach opened the live page (rosetta-shell.arcs.care/voice) in Comet and Chrome on his phone and got "voice not available". Those browsers do not expose speech recognition to web pages. This PR is stage 1 of the fix; stage 2, server speech-to-text through ElevenLabs so voice works in every browser, follows separately.
Changes (
web/rosetta-voice.html)Verification
node web/parity.test.js: all 5 files identical.sh test.sh: ALL SMOKE CHECKS PASSED.Generated by Claude Code