feat: Q key toggles browser speaker mute (TTS)#31
Merged
tokk-nv merged 4 commits intoNVIDIA-AI-IOT:mainfrom Mar 13, 2026
Merged
feat: Q key toggles browser speaker mute (TTS)#31tokk-nv merged 4 commits intoNVIDIA-AI-IOT:mainfrom
tokk-nv merged 4 commits intoNVIDIA-AI-IOT:mainfrom
Conversation
- Add browserSpeakerMuted state and ttsGainNode; TTS routes through gain node - Q shortcut mutes/unmutes TTS output only (pipeline keeps running) - Document Q in keyboard shortcuts (index.html) Made-with: Cursor
- Add speaker toggle button left of Gear; shows Speaker on/off state - Highlight muted state with #bd0f40 (speaker-btn-muted) - updateSpeakerButton() keeps icon/title in sync with Q key Made-with: Cursor
- updateSpeakerButton: replace innerHTML so icon updates after Lucide SVG replace - Q key: use capture phase + stopPropagation so shortcut works - Speaker-off: filled #bd0f40 background, white icon (stroke) Made-with: Cursor
- Use timeline-ai purple for header speaker (border when on, fill when off) - Add speaker toggle in fullscreen-controls over video; show only when fullscreen - updateSpeakerButton() keeps header and fullscreen button in sync Made-with: Cursor
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.
Summary
Adds a keyboard shortcut Q to mute/unmute the browser’s TTS output. The voice pipeline keeps running; only the speaker output is silenced. Useful for demos (e.g. talking over the AI without stopping the session).
Changes
browserSpeakerMuted,ttsGainNode.GainNodeso muting only affects output, not the pipeline.toggleBrowserSpeakerMute()toggles mute; Q keydown triggers it (ignored when focus is in input/textarea).How to verify
Screenshots