Add ScreenCaptureKit audio capture for macOS#1388
Open
adamdexter wants to merge 1 commit intochidiwilliams:mainfrom
Open
Add ScreenCaptureKit audio capture for macOS#1388adamdexter wants to merge 1 commit intochidiwilliams:mainfrom
adamdexter wants to merge 1 commit intochidiwilliams:mainfrom
Conversation
Introduces system audio capture as an alternative to microphone input using macOS ScreenCaptureKit. Includes a Swift helper binary that captures and streams 16kHz mono float32 PCM, an AudioSource abstraction layer, and full UI integration with an audio source selector dropdown. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
|
@adamdexter Nice idea, valuable addition. I will check this and give comments or merge. Hope to find time for this in a few coming weekends |
raivisdejus
reviewed
Feb 27, 2026
Comment on lines
+17
to
+29
| def get_screen_audio_helper_path() -> Optional[str]: | ||
| """Locate the buzz-screen-audio helper binary. | ||
|
|
||
| Follows the same two-level resolution pattern used for whisper-cli | ||
| in recording_transcriber.py and whisper_cpp.py. | ||
| """ | ||
| path = os.path.join(APP_BASE_DIR, "whisper_cpp", SCREEN_AUDIO_HELPER_NAME) | ||
| if os.path.isfile(path): | ||
| return path | ||
| path = os.path.join(APP_BASE_DIR, "buzz", "whisper_cpp", SCREEN_AUDIO_HELPER_NAME) | ||
| if os.path.isfile(path): | ||
| return path | ||
| return None |
Collaborator
There was a problem hiding this comment.
Screen audio helper should not live in whisper_cpp folder
Collaborator
|
@adamdexter Checked the implementation and a thing that is immediately missing is some build instructions. Main app is built via Makefile See if you can add build commands for screen_capture helper there as well. Feature is useful, so I can look into the missing parts myself as well, at some later free moment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
buzz-screen-audio) that captures system audio and streams 16kHz mono float32 PCM via stdoutAudioSourceabstraction layer (SoundDeviceAudioSource/ScreenCaptureAudioSource) soRecordingTranscribercan use either sourceTest plan
pytest tests/test_audio_source.py— all 11 tests pass🤖 Generated with Claude Code