Skip to content

feat(dashboard): tapping the mic stops any ongoing read-aloud - #126

Open
retog wants to merge 1 commit into
mainfrom
feat/mic-stops-readaloud
Open

feat(dashboard): tapping the mic stops any ongoing read-aloud#126
retog wants to merge 1 commit into
mainfrom
feat/mic-stops-readaloud

Conversation

@retog

@retog retog commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

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 existing speechSynthesis.cancel() +
    clear-_speakingTs pattern; the autoplay-off toggle and the
    second-tap-stops-playback path now reuse it (no behaviour change there).

Pure front-end; node --check passes.

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant