Skip to content

Add stopRunning call to AudioRecordingService#51

Open
koc-Z3 wants to merge 1 commit intokaransinghgit:mainfrom
koc-Z3:main
Open

Add stopRunning call to AudioRecordingService#51
koc-Z3 wants to merge 1 commit intokaransinghgit:mainfrom
koc-Z3:main

Conversation

@koc-Z3
Copy link

@koc-Z3 koc-Z3 commented Mar 22, 2026

Bug

In hold mode, the orange mic indicator in the menu bar stays on
permanently after transcription completes. The mic is never released
until the app is quit and relaunched.

Root Cause

AVCaptureSession is started in startRecording() but stopRecording()
never calls captureSession?.stopRunning(). The audio writers are
finalized correctly but the hardware mic stays open indefinitely,
causing macOS to keep the orange indicator on.

Fix

Added captureSession?.stopRunning() in the finishGroup.notify callback
in stopRecording(), after the asset writers finish. The session restart
on the next recording is already handled by the existing code in
startRecording().

Tested on

  • Apple M4, 16GB
  • Hold mode
  • large-v3 model

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