Shell
Plan: Voice Control - Mute & On-Demand Mode
Goal
Give users control over when MILO speaks. Currently voice auto-speaks AI responses during voice interactions. User wants to summon voice on-demand, not have it always on.
Current Behavior
| Trigger | Auto-Speaks? |
|---|---|
| VoiceAssistantButton active | Yes - speaks AI responses |
| VoiceGaugeDrawer active | Yes - speaks AI responses |
| Morning/Evening briefings | Yes - if voiceEnabled |
| Regular chat typing | No |
Existing controls:
voiceEnabledtoggle in Settings page (lines 540-549)- Voice selector and speed slider in Settings
- No quick-access mute button
Problem
- Mute toggle is buried in Settings - not quick to access
- No distinction between "voice interaction mode" vs "always speak"
- User wants voice ONLY when explicitly summoned
Proposed Solution
Quick Mute Toggle on Voice Gauge
Location: On the VoiceGaugeDrawer - small mute icon next to mic button
Behavior:
- Single tap → Toggle mute
- Visual indicator shows mute state (speaker-slash icon)
- Muted = TTS disabled, voice input still works (transcribes to chat)
- State persists in settingsStore
Implementation
Step 1: Add voiceMuted to Settings Store
File: src/stores/settingsStore.ts
// Add to state
voiceMuted: false,
// Add method
toggleVoiceMute: () => set((state) => ({ voiceMuted: !state.voiceMuted })),
Step 2: Add to UserSettings Type
File: src/types/index.ts
voiceMuted: boolean // Quick mute toggle
Step 3: Add Mute Button to VoiceGaugeDrawer
File: src/components/VoiceAssistant/VoiceGaugeDrawer.tsx
- Add small mute icon button below/beside mic button
- Shows
VolumeXicon when muted,Volume2when unmuted - Clicking toggles
voiceMutedstate - Industrial styling to match gauge aesthetic
Step 4: Respect Mute State in TTS Triggers
Files:
VoiceGaugeDrawer.tsx- Check!voiceMutedbefore speakingVoiceAssistantButton.tsx- Check!voiceMutedbefore speakingDialogueModal.tsx- Check!voiceMutedbefore speaking
Logic change:
// Before
if (settings.voiceEnabled) { speak(content) }
// After
if (settings.voiceEnabled && !settings.voiceMuted) { speak(content) }
Files to Modify
| File | Change |
|---|---|
src/stores/settingsStore.ts |
Add voiceMuted state + toggle method |
src/types/index.ts |
Add voiceMuted to UserSettings |
src/components/VoiceAssistant/VoiceGaugeDrawer.tsx |
Add mute button UI |
src/components/VoiceAssistant/VoiceAssistantButton.tsx |
Respect mute state |
src/components/Dialogue/DialogueModal.tsx |
Respect mute state |
UI Design
VoiceGaugeDrawer (closed state):
┌─────────────────────────┐
│ [🎤] [🔇] │ ← Mic button + Mute toggle
└─────────────────────────┘
Mute button states:
- Unmuted: 🔊 (Volume2 icon, green)
- Muted: 🔇 (VolumeX icon, red/dim)
User Flow
User wants silence:
→ Tap mute button on voice gauge
→ Icon changes to speaker-slash
→ MILO stops speaking responses
→ Voice input still works (transcribes to chat silently)
User wants voice back:
→ Tap mute button again
→ Icon changes back to speaker
→ MILO resumes speaking in voice mode
Scope
- Simple mute toggle only (no voice mode settings)
- Mute persists until toggled off
- Does NOT disable voice input, only TTS output