Skip to content

Mobile: Use headphone button to toggle mic / trigger speak #1098

@aj47

Description

@aj47

Feature Request

When using the SpeakMCP mobile app with headphones connected, allow the headphone button (e.g. play/pause or center button) to toggle the microphone on/off or trigger the speak action.

Use Case

Users wearing headphones should be able to activate voice input without needing to tap the screen — just press the headphone button to start/stop speaking.

Possible Implementation

  • Listen for remote control / media button events (AVAudioSession remote command center on iOS, or MediaSession API on Android/web)
  • Map the play/pause or center button press to toggle mic recording
  • Could also support double-press or long-press for additional actions

Expected Behaviour

  • Single press headphone button → toggle mic on/off (or trigger speak)
  • Visual/audio feedback to confirm mic state change

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions