feat(dashboard): tapping the mic stops any ongoing read-aloud - #126
Open
retog wants to merge 1 commit into
Open
Conversation
Pressing the microphone button now cancels an in-progress speech-synthesis playback before it starts recording. Starting to dictate to Ara while her previous reply is still being read aloud is jarring; the mic tap should silence it. Adds a small _stopSpeaking() helper (cancel + clear _speakingTs) and reuses it in the autoplay-off and second-tap-stops paths that already did the same. Co-Authored-By: Claude <noreply@anthropic.com>
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
Pressing the microphone button in the dashboard composer now stops any
read-aloud that is currently playing, before it starts recording.
Why
When Ara's reply is being read aloud (autoplay or a tapped ▶) and the user
taps the mic to say something back, the old speech kept talking over the new
recording. Tapping the mic is an unambiguous "I want to talk now" signal, so
it should silence the current playback.
How
_startRecording()calls a new_stopSpeaking()helper as its first action._stopSpeaking()factors out the existingspeechSynthesis.cancel()+clear-
_speakingTspattern; the autoplay-off toggle and thesecond-tap-stops-playback path now reuse it (no behaviour change there).
Pure front-end;
node --checkpasses.🤖 Generated with Claude Code