openclaw - 💡(How to fix) Fix Feature: Dual voice input buttons (auto-send + continuous mode) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#68884Fetched 2026-04-19 15:06:36
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
closed ×1subscribed ×1

Root Cause

Voice input is one of the most natural ways to interact with an AI assistant. The current UX (speak → type appears → press Enter → stop mic) feels like fighting the tool. Auto-send on pause makes voice feel as fluid as talking to a person. The continuous mode is especially valuable for extended conversations where you don't want to re-activate the mic every 30 seconds.

Fix Action

Fix / Workaround

Implementation Notes

This was prototyped as a patch to the built Control UI (dist/control-ui/assets/index-*.js) with these changes:

The patch works reliably on Chrome and Edge (Web Speech API). After each OpenClaw update, the patch must be re-applied since the built JS filename hash changes.

RAW_BUFFERClick to expand / collapse

Feature Request: Dual Voice Input Buttons for Control UI

Current Behavior

The Control UI has a single microphone button for speech input. After speaking, the recognized text appears in the input field, but the user must manually press Enter to send the message. The mic also stays active until manually stopped.

This creates friction:

  • Extra step (press Enter) after every voice message
  • Mic doesn't auto-stop, so you have to click again to turn it off
  • No way to have a "conversation mode" where you speak multiple messages in sequence

Proposed Behavior

Replace the single mic button with two side-by-side mic buttons:

Left button — "Voice Auto-Send" (one-shot)

  • Click → mic activates
  • Speak → pause detected → text is sent automatically
  • Mic turns off after sending
  • Ideal for quick single messages

Right button — "Voice Continuous" (conversation mode)

  • Click → mic activates and stays on
  • After each speech pause, text is sent automatically
  • Mic stays active — just keep talking for the next message
  • Click again to deactivate
  • Ideal for longer back-and-forth conversations

Both modes show a live interim transcript above the input field while recording.

Implementation Notes

This was prototyped as a patch to the built Control UI (dist/control-ui/assets/index-*.js) with these changes:

  1. Added sttRecordingCont state variable alongside existing sttRecording
  2. Updated interim transcript display to check both recording states
  3. Split the single mic button into two:
    • Auto-send button: sets MC.continuous = false, calls e.onSend() + PC() on final transcript
    • Continuous button: on onEnd, restarts recognition via window.__sttCont.start() for persistent listening
  4. Both buttons use the existing NC() / PC() / jC() infrastructure — no new APIs needed

The patch works reliably on Chrome and Edge (Web Speech API). After each OpenClaw update, the patch must be re-applied since the built JS filename hash changes.

Why This Matters

Voice input is one of the most natural ways to interact with an AI assistant. The current UX (speak → type appears → press Enter → stop mic) feels like fighting the tool. Auto-send on pause makes voice feel as fluid as talking to a person. The continuous mode is especially valuable for extended conversations where you don't want to re-activate the mic every 30 seconds.

Environment

  • OpenClaw 2026.4.x
  • Chrome / Edge (Web Speech API)
  • Tested with the existing sttRecording / NC / PC speech recognition infrastructure

extent analysis

TL;DR

Implementing a dual voice input button system with "Voice Auto-Send" and "Voice Continuous" modes can enhance the user experience by providing a more fluid and natural way to interact with the AI assistant.

Guidance

  • Review the proposed implementation notes to understand the changes required to the Control UI, including the addition of a new state variable sttRecordingCont and updates to the interim transcript display.
  • Test the patch on different browsers and environments to ensure compatibility and reliability, focusing on the Web Speech API support in Chrome and Edge.
  • Consider the maintenance implications of the patch, as it needs to be re-applied after each OpenClaw update due to the changing JS filename hash.
  • Evaluate the user experience benefits of the "Voice Auto-Send" and "Voice Continuous" modes, particularly for extended conversations where the continuous mode can reduce friction.

Example

No specific code snippet is provided due to the complexity and specificity of the implementation details, but the key steps involve modifying the index-*.js file in the dist/control-ui/assets directory to incorporate the dual button functionality and state management.

Notes

The implementation relies on the existing NC(), PC(), and jC() infrastructure, which suggests that the solution is built upon current capabilities without introducing new APIs. However, the need for periodic re-application of the patch after OpenClaw updates could introduce maintenance challenges.

Recommendation

Apply the workaround by implementing the dual voice input button system as described, given the potential for significantly enhancing the user experience, especially in conversation modes. This approach allows for a more natural interaction with the AI assistant, aligning with the goal of making voice input feel as fluid as possible.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Feature: Dual voice input buttons (auto-send + continuous mode) [1 participants]