Skip to content

feat: list audio input devices in the menu bar for quick device switching - #120

Open
lachlanglasgow wants to merge 1 commit into
karansinghgit:mainfrom
lachlanglasgow:feature/audio-devices-in-menubar
Open

feat: list audio input devices in the menu bar for quick device switching#120
lachlanglasgow wants to merge 1 commit into
karansinghgit:mainfrom
lachlanglasgow:feature/audio-devices-in-menubar

Conversation

@lachlanglasgow

Copy link
Copy Markdown

What this changes

Switching the input microphone today requires opening Settings → Audio every time, which is annoying when devices change often (e.g. plugging a laptop into a dock, where the internal mic stops being usable).

This adds a "Show audio devices in menu bar" toggle to Settings → Audio. When enabled, the SpeakType menu bar popover lists all available input microphones, and tapping a device selects it immediately — no need to open Settings.

Details

  • Settings → Audio — new standalone "Menu Bar" settings card (below the Input Device card) with the toggle. Persisted via showAudioDevicesInMenuBar, off by default.
  • Menu bar popover (MenuBarDashboardView) — new "Input Device" section between the stats grid and the recent transcripts:
    • tappable row per input microphone, with a checkmark and accent border on the active device
    • Refresh button; the list re-fetches every time the popover opens
    • live updates on plug/unplug — AudioRecordingService already observes AVCaptureDevice.wasConnected/wasDisconnected
    • selection persists (same selectedDeviceId UserDefaults path as the settings screen)

Verification

  • make build succeeds
  • all 73 unit tests pass
  • manual: toggling the setting changes the popover height from 492pt → 619pt (section header + 2 device rows on a two-mic machine), and tapping a row switches the active mic instantly

Happy to adjust the wording, the default state, or the section placement if there's a better fit for the project.

…hing

Add a "Show audio devices in menu bar" toggle to Settings → Audio. When
enabled, the SpeakType menu bar popover lists all available input
microphones so you can switch devices (e.g. after plugging a laptop into
a dock) without opening Settings. The selection persists and follows the
same AudioRecordingService state as the settings screen.

- Settings → Audio: new standalone "Menu Bar" settings card with the
  toggle (persisted via showAudioDevicesInMenuBar, off by default)
- MenuBarDashboardView: new "Input Device" section with tappable device
  rows, refresh button, and live plug/unplug updates (the service already
  observes AVCaptureDevice connect/disconnect notifications)
@lachlanglasgow
lachlanglasgow marked this pull request as ready for review September 3, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant