Skip to content

Feature Request: Voice Mode #99

Closed
Closed

Description

@NichUK

I'm keen to be able to chat with my Claw, so I've started to build Voice Mode, as an add on to the current tray app.
To make it flexible for everyone, I'm building two separate modes, AlwaysOn, and Wakeword. I'm also allowing for Windows built in STT and TTS as well as user-configured STT/TTS via configuration (e.g. Minimax, ElevenLabs, etc), and integration with the current chat function, rather than just an invisible background function (although it will be an invisible function if Chat is not open at the time).

@shanselman I don't know if this is already on your roadmap, but would you be open to a PR? I already have AlwaysOn with Windows STT & TTS integrated with Chat working well, and I have deliberately architected it so as to fit with the rest of the project, but with minimum touchpoints (can also probably do a little more work there).

With your permission I'll generate a PR for review and discussion, and you can let me know if the architectural approach is good for you. I'm also in the process of adding the additional TTS providers as the Windows TTS is a bit old-school. I've also done a design document which lays it all out.

Nich

Activity

  1. shanselman commented on Mar 23, 2026

    @shanselman
    Collaborator

    Sounds like fun and a great idea @NichUK! I would ask that you "light up with the best of windows" - there is the old TTS stuff and there's newer models and APIs. I think there are 3 ways to do speech on windows that is built in, and then there's new stuff like http://Handy.computer and whisper, so as long as it's architected in a way that let's us grow I'm into it! I can also have the windows speech team look at it as well! :)

  2. NichUK commented on Mar 23, 2026

    @NichUK
    ContributorAuthor

    I've got stuff working well, but just making it a bit nicer before I share and reducing the latency as much as possible - although the biggest latency is OC response... Should have a PR tomorrow.

  3. added
    enhancement
    on Mar 25, 2026
  4. github-actions commented on Mar 26, 2026

    @github-actions
  5. shanselman commented on May 7, 2026

    @shanselman
    Collaborator

    Hi @NichUK — thanks again for the early Voice Mode work in #120. That PR helped shape the direction, even though the branch had drifted too far to land as-is.

    We’ve now landed a newer, smaller audio/STT/TTS foundation in #288, and we’re keeping future voice work split into smaller pieces. If you’re interested, we’d love your review or help on the next follow-ups around voice UX, WebView bridge integration, and turning the audio capabilities into a polished Voice Mode experience.

    Really appreciate the groundwork you laid here.

  6. NichUK commented on May 8, 2026

    @NichUK
    ContributorAuthor

    Hi @shanselman! Apologies for my radio silence for the last couple of weeks. My day job went mad (starting up a new thing).

    I'm absolutely happy to help with extending the current base, now the foundation is in, or reviewing, or whatever is useful. I hope that the new WebView bridge integration should help with some of the STT failures I was seeing previously.

    STT
    I think I saw quite a large STT PR go past, with a lot of embedded stuff. It feels like we should probably agree a direction for most of these things before we start.

    • The inbuilt Windows STT actually works quite well, and everyone (for whom the tray app will work) already has it, I think.
    • External cloud-based STT also works, although ensuring that speech packets are streamed during collection to reduce time to first text is important.
    • Local models can be great, but obviously require a substantial local installation, which I think probably shouldn't be part of the tray app itself.
    • Talk mode is straight-forwards, and easily extended to utilise a wake-word. So that's probably the right order.

    My original plan with the provider catalogue was to make it easy to add additional providers without necessarily having to change code - since most of them (including some of the local models) use a very similar mechanism to communicate. But even without that, making local models a separate download/install would seem a sensible separation.

    UX and channel
    It was always ideal to use the standard WebView bridge to send voice input traffic to OC, but the previous incarnation was too fragile, which is why I ended up using a separate channel. It also got around the issue of what to do if the user didn't want to use the WebView, and didn't have it open.

    But assuming that we have access to the WebView channel now from inside the tray app (I haven't checked the latest stuff) then I think that would be the right way to go. But STT should definitely work whether or not the user has a chat window open.

    I also have some other speech UX suggestions, but they can go into a small PR by themselves.

    TTS
    Needs to support more than just ElevenLabs.

    Summary - Suggested Direction

    • TTS: Expand to allow additional providers
    • STT: Start with Talk Mode and extend to Wake-word afterwards
    • STT: Provide in-built Windows and access to cloud or local providers, but not the local providers
    • STT: Attempt to utilise same command channel as WebView, but must work with or without WebView open
    • UX: Should make it obvious when voice mode is active

    What do you think?

  7. github-actions commented on May 10, 2026

    @github-actions
    Contributor

    🤖 This is an automated response from Repo Assist.

    Welcome back, @NichUK — the direction you've outlined is well-considered and aligns closely with what's now in the codebase.

    Where things stand after PR #288 (merged May 7)

    PR #288 (RBrid) landed Whisper STT + Piper TTS as MCP-callable node capabilities. Here's how your suggestions map to the current code:

    Your suggestion Current state
    TTS: expand to allow additional providers ✅ Already done — TtsCapability supports Piper (local default), Windows SAPI, and ElevenLabs; TextToSpeechService dispatches by provider name
    STT: Talk Mode first ✅ stt.transcribe (fixed-duration) and stt.listen (VAD-driven) are both live; wake-word is explicitly deferred
    STT: in-built Windows + cloud access, not local install ⚠️ The current STT is Whisper-only (local, requires a model download). The old WinRT SpeechRecognizer was removed from #288 because of its online-speech leak risk in unpackaged builds. Windows built-in STT could be re-added via the WinRT API as an alternative provider
    STT: use the same WebView channel ✅ The bridge is wired — WebChatWindow and CanvasWindow both have PostBridgeMessage / WebMessageReceived via PRs #192 and #259
    UX: make voice mode visible when active 🟡 Voice Settings and the Voice Overlay window are in the tray, but active-listening UX (e.g. a pulsing indicator in the chat bridge) depends on the gateway SPA-side window.chrome.webview listener, tracked in openclaw/openclaw#69633

    Relevant source files

    • src/OpenClaw.Shared/Capabilities/SttCapability.cs — STT command surface, language validation, privacy invariants
    • src/OpenClaw.Shared/Capabilities/TtsCapability.cs — TTS command surface, provider constants and resolution
    • src/OpenClaw.Tray.WinUI/Services/TextToSpeech/TextToSpeechService.cs — TTS dispatch (Piper / SAPI / ElevenLabs)
    • src/OpenClaw.Tray.WinUI/Services/VoiceService.cs — STT pipeline (Whisper.net + Silero VAD + NAudio)

    The WinRT Windows.Media.SpeechRecognition path would be the natural fit for your "in-built Windows" suggestion — it avoids the model download requirement and would make a focused follow-up PR.

    Generated by 🌈 Repo Assist, see workflow run.

    Generated by 🌈 Repo Assist, see workflow run. Learn more.

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/repo-assist.md@97143ac59cb3a13ef2a77581f929f06719c7402a
    
  8. shanselman commented on May 18, 2026

    @shanselman
    Collaborator

    Closing this broad Voice Mode tracker as superseded by the newer voice/audio foundation work, but I want to explicitly thank @NichUK for the early exploration here.

    Your work and notes helped shape the direction: keeping voice integrated with chat, avoiding brittle DOM scraping, and thinking about STT/TTS provider choices up front. Since then, the project landed a smaller foundation in #288 with Whisper STT, Piper/Windows/ElevenLabs TTS plumbing, and node capabilities that future voice UX can build on.

    Rather than keep this large umbrella issue open, we should track future voice work as smaller focused issues/PRs: polished Talk Mode UX, wake word, Windows STT provider, cloud STT provider, and bridge-driven chat/voice state. If you want to jump back in, we would absolutely welcome help on any of those follow-up slices.

  9. locked as resolved and limited conversation to collaborators on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions