Skip to content

feat(desktop): read replies aloud (auto-TTS) composer toggle - #55154

Merged
OutThisLife merged 5 commits into
mainfrom
bb/desktop-auto-speak-replies
Jun 29, 2026
Merged

feat(desktop): read replies aloud (auto-TTS) composer toggle#55154
OutThisLife merged 5 commits into
mainfrom
bb/desktop-auto-speak-replies

Conversation

@OutThisLife

@OutThisLife OutThisLife commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a one-click "Read replies aloud" toggle to the desktop composer — pure TTS for people who want spoken responses but don't want dictation or the full hands-free voice conversation. Type as normal; when it's on, every completed assistant reply is read aloud.

The toggle drives the existing voice.auto_tts config key (already in Settings → Voice and honored by the messaging gateway), which the desktop chat renderer previously never consumed. So the composer button and the Settings switch are now one source of truth, and the preference persists across restarts.

UX

  • New speaker icon in the composer controls, between the mic and the send/voice button.
    • Off → muted-speaker (VolumeX), ghost. On → speaker-waves (Volume2), accent-filled, aria-pressed. Mirrors the existing muted-mic pressed state.
  • Complements dictation + conversation rather than replacing them (a TTS-only user simply leaves the mic alone).
  • Reuses the existing "Speaking… [Stop]" playback pill for feedback.

Behavior

  • Does not read the reply already on screen when toggled on, and won't re-read when opening an old chat — only replies that arrive afterward.
  • Never overlaps clips: a reply that lands mid-playback is held and spoken the instant the current one ends (re-checks on both the message-complete and playback-idle edges). Always reads the latest reply, so a backlog collapses to the newest.
  • Stays out of the way while a full voice conversation is active (that mode speaks replies itself) and shares lastSpokenId dedupe so nothing is spoken twice.

Test plan

  • Toggle on, send a message → reply is read aloud.
  • Send a follow-up while a reply is still playing → newer reply is read once the current clip finishes.
  • Toggle reflects / persists via Settings → Voice "Read Responses Aloud" and across restart.
  • Opening an existing chat with auto-speak on does not read its last reply.
  • Full voice conversation still behaves normally (no double-speak).

@OutThisLife
OutThisLife merged commit f171842 into main Jun 29, 2026
20 checks passed
@OutThisLife
OutThisLife deleted the bb/desktop-auto-speak-replies branch June 29, 2026 20:25
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/desktop Electron desktop app (apps/desktop/*) tool/tts Text-to-speech and transcription duplicate This issue or pull request already exists labels Jun 29, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #43845 — both add a desktop composer 'Read replies aloud' toggle that wires the existing voice.auto_tts config key into the desktop chat renderer to auto-read completed assistant replies. #43845 (filed earlier, implements spec issue #43767) is the canonical PR for this feature; this is the same mechanism on the same surface. Flagging for the maintainer to pick one.

waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…to-speak-replies

feat(desktop): read replies aloud (auto-TTS) composer toggle
habarmc1223-sudo pushed a commit to habarmc1223-sudo/hermes-agent-fluxmem that referenced this pull request Jul 8, 2026
…to-speak-replies

feat(desktop): read replies aloud (auto-TTS) composer toggle
santhreal pushed a commit to santhreal/hermes-agent that referenced this pull request Jul 13, 2026
…to-speak-replies

feat(desktop): read replies aloud (auto-TTS) composer toggle
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
…to-speak-replies

feat(desktop): read replies aloud (auto-TTS) composer toggle
leewenjie pushed a commit to leewenjie/hermes-agent that referenced this pull request Aug 7, 2026
…to-speak-replies

feat(desktop): read replies aloud (auto-TTS) composer toggle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/desktop Electron desktop app (apps/desktop/*) duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have tool/tts Text-to-speech and transcription type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants