Voice Input Patch – Dual Mic Buttons
by @elzershark
Patch OpenClaw Control UI to add dual voice input buttons (auto-send + continuous). Use when OpenClaw voice input needs patching, after OpenClaw updates (pat...
| Problem | Likely Cause | Fix |
|---|---|---|
| No mic button at all | Browser doesn't support Web Speech API | Use Chrome or Edge |
| Button appears but does nothing on click | Step 6 not applied or partial | Restore backup, re-apply Step 6 |
| Short click starts mic but doesn't auto-send | e.onSend() missing in @mouseup handler | Restore backup, re-apply Step 6 |
| Short click mic stays on after pause | PC() or sttRecording=!1 missing | Restore backup, re-apply Step 6 |
| Hold 3s doesn't start continuous mode | _holdTimer / _holdTriggered not working | Restore backup, re-apply Step 6 |
| Continuous mode stops after silence | onEnd restart logic not working | Check window.__sttCont and __sttCont.start() in Step 6 replacement |
| Live transcript not showing | Step 5 not applied | Apply Step 5 |
| "Microphone denied" in browser | Permissions-Policy blocks mic | Fix microphone=() → microphone=(self) in the HTTP utils file (included in OpenClaw 2026.4.18+) |
| After OpenClaw update | Patches overwritten | Re-apply ALL steps (filename hash changes!) |
clawhub install openclaw-voice-patch