Developer guide · 12 min

Looking for a meeting recording SDK for macOS? The Mac already ships one.

To capture a meeting on the Mac it runs on, you don’t need a third-party SDK. Apple’s ScreenCaptureKit records the audio other apps play and, on macOS 15 and later, the microphone in the same stream. This guide shows how VoiceToText, a free and open-source Mac app, uses it to record and transcribe calls, with excerpts from its Swift source.

  • Built into macOS
  • System audio + microphone
  • Real Swift from a shipping app
  • Open source, MIT

The short answer

For recording a meeting on the local Mac, macOS has the pieces built in. ScreenCaptureKit captures system or per-app audio from macOS 13, and from macOS 15 it can also capture the microphone in the same stream. Core Audio process taps, from macOS 14.2, are a lower-level route to the audio other processes play, and AVAudioEngine records a microphone on any recent macOS. All of them are part of the OS, with no license fee or per-minute charge. What you write yourself is the rest: asking for two permissions, converting and mixing two sources, writing to disk as you go, surviving interruptions and handing the file to a speech model. VoiceToText does all of that in a few hundred lines of Swift, quoted below. A commercial SDK or meeting bot earns its price when you need recordings without a Mac in the loop, on other platforms, or with each participant on a separate track.

The macOS capture APIs, at a glance.

Availability is from the macOS 27.2 SDK headers. Each API is part of macOS and costs nothing to use. Swipe sideways to see every column.

Availability is from the macOS 27.2 SDK headers. Each API is part of macOS and costs nothing to use.
APIWhat it capturesNeedsPermission the user grants
ScreenCaptureKit audioAudio played by apps on a display, filterable per appmacOS 13.0 (capturesAudio)Screen Recording (Screen & System Audio Recording)
ScreenCaptureKit microphoneA microphone, delivered as a second output of the same streammacOS 15.0 (captureMicrophone)Microphone, plus Screen Recording for the stream itself
Core Audio process tapThe output of chosen processes, or all but chosen ones, as an input devicemacOS 14.2 (AudioHardwareCreateProcessTap)System audio recording, prompted on first use
AVAudioEngine inputA microphone, on its ownmacOS 10.10Microphone

Three Apple APIs cover meeting capture on a Mac.

A meeting on a Mac is two sounds: what the call app plays (the other people) and what the microphone hears (you). These are the system APIs that capture them, with the macOS version each one needs.

ScreenCaptureKit system audio (macOS 13)

Set SCStreamConfiguration.capturesAudio and add an .audio output to an SCStream. Audio arrives as CMSampleBuffers at the stream’s sampleRate and channelCount (48 kHz stereo by default). Apple’s WWDC22 session notes that audio can only be filtered at the application level, so you can record one app but not one window.

ScreenCaptureKit microphone (macOS 15)

captureMicrophone and microphoneCaptureDeviceID add the mic to the same stream as a separate .microphone output. Per the header, those buffers come in the microphone’s native format rather than the stream’s sample rate, so plan to convert them.

Core Audio process taps (macOS 14.2)

AudioHardwareCreateProcessTap with a CATapDescription captures what chosen processes play. You add the tap to an aggregate device and read it like an input. It needs an NSAudioCaptureUsageDescription string, and the system asks the user the first time you record from it. No display or video settings are involved.

AVAudioEngine for the microphone

Before macOS 15, ScreenCaptureKit has no microphone output, so you record the mic separately, for example from AVAudioEngine’s inputNode (macOS 10.10), and mix the two yourself. The rest of this guide applies the same way.

Two permissions, asked in order, with a way back after a no.

ScreenCaptureKit needs Screen Recording permission even when you only take audio. In current System Settings the list is called Screen & System Audio Recording, under Privacy & Security. The microphone is a separate permission, which needs an NSMicrophoneUsageDescription string in your Info.plist. Many users are surprised that an audio app asks to record the screen, so VoiceToText’s permission card says so directly: it captures other participants’ audio through Screen Recording and never records the screen.

VoiceToText checks both before every recording, microphone first. CGPreflightScreenCaptureAccess() reads the current state without prompting, so it is safe to poll from the UI. CGRequestScreenCaptureAccess() shows the system prompt once; per Apple’s header, a process the user already denied is not asked again, and the user has to turn access on in System Settings. That is why the app’s error text names the exact setting, and its Settings card has a button that opens that pane.

MeetingController.start(): both permissions before any capture (simplified)SwiftView on GitHub ↗
// Microphone: AVCaptureDevice.requestAccess(for: .audio) when undetermined.
guard await MicPermission.request() else {
    state = .error("Microphone access is required. Enable it in System Settings → Privacy & Security → Microphone.")
    return
}

// Screen Recording: CGPreflightScreenCaptureAccess() never prompts;
// CGRequestScreenCaptureAccess() prompts once, then only reports.
guard ScreenCapturePermission.isGranted || ScreenCapturePermission.request() else {
    state = .error("Screen Recording permission is required to capture other participants' audio. Enable VoiceToText in System Settings → Privacy & Security → Screen Recording, then try again.")
    return
}

try await recorder.start(outputURL: Self.makeWorkingURL())

One ScreenCaptureKit stream carries both sources.

On macOS 15 and later, a single SCStream delivers system audio and the microphone as two outputs. A content filter still needs a display, even for audio only, so VoiceToText takes the first display from SCShareableContent and keeps the video settings tiny (128 × 128 at one frame a second). It never registers a screen output; only the two audio outputs are consumed.

Two settings matter for meetings. excludesCurrentProcessAudio keeps the app’s own sound out of the recording; VoiceToText plays recordings back in its History, and without this a playback during a call would be recorded too. microphoneCaptureDeviceID picks the microphone: the app passes the one chosen in its Settings if it is connected, and nil (the system default) otherwise, so an unplugged USB mic never stops a meeting from starting.

MeetingRecorder.start(): one stream for system audio and the microphone (simplified)SwiftView on GitHub ↗
let content = try await SCShareableContent.current
guard let display = content.displays.first else {
    throw MeetingRecorderError.noDisplayAvailable
}
let filter = SCContentFilter(display: display, excludingWindows: [])

let config = SCStreamConfiguration()
config.capturesAudio = true
config.sampleRate = 16_000
config.channelCount = 1
config.excludesCurrentProcessAudio = true     // never record our own playback
config.width = 128                            // audio only: keep the unused
config.height = 128                           // video path tiny and slow
config.minimumFrameInterval = CMTime(value: 1, timescale: 1)
config.captureMicrophone = true               // macOS 15+
config.microphoneCaptureDeviceID = pinnedMicrophoneUID  // nil = system default

let stream = SCStream(filter: filter, configuration: config, delegate: self)
try stream.addStreamOutput(self, type: .audio, sampleHandlerQueue: processingQueue)
try stream.addStreamOutput(self, type: .microphone, sampleHandlerQueue: processingQueue)
try await stream.startCapture()

Convert each source to one format, then mix them.

The two outputs don’t arrive in the same format: system audio follows the stream’s configuration, while the microphone arrives in the device’s native format. VoiceToText gives each source its own AVAudioConverter to 16 kHz mono Float32, and rebuilds a converter whenever its source format changes, which can happen when the audio route changes mid-call. All of this runs on one serial queue, the one passed to addStreamOutput, so the buffers need no locks.

Converted samples go into two queues. Whatever both queues hold is summed and clipped to the −1…1 range, then written. If one source stops delivering buffers while the other backs up past three seconds of audio, the backed-up side is written on its own, so a stalled microphone can’t grow memory without limit or freeze the recording.

Two honest limits of this approach. Samples are paired by arrival order, not by presentation timestamp; for a speech transcript that has been good enough, but use the buffers’ timestamps if you need sample-accurate alignment. And a mono mix no longer knows who spoke. If you want “you” and “them” apart, keep the microphone and system audio as separate channels or files.

MeetingRecorder: the sample callback and the mixSwiftView on GitHub ↗
func stream(_ stream: SCStream, didOutputSampleBuffer sampleBuffer: CMSampleBuffer,
            of type: SCStreamOutputType) {
    guard CMSampleBufferDataIsReady(sampleBuffer) else { return }
    switch type {
    case .audio:
        if let samples = convertToTarget(sampleBuffer, isMic: false) {
            systemQueue.append(contentsOf: samples)
            drainMix()
        }
    case .microphone:
        if let samples = convertToTarget(sampleBuffer, isMic: true) {
            micQueue.append(contentsOf: samples)
            drainMix()
        }
    default:
        break
    }
}

private func drainMix() {
    let paired = min(micQueue.count, systemQueue.count)
    guard paired > 0 else { return }  // plus the 3-second stall guard, in the file
    var mixed = [Float](repeating: 0, count: paired)
    for index in 0..<paired {
        mixed[index] = max(-1.0, min(1.0, micQueue[index] + systemQueue[index]))
    }
    micQueue.removeFirst(paired)
    systemQueue.removeFirst(paired)
    emit(mixed)  // to the WAV writer, the level meter and live listeners
}

Write to disk while recording, so a long call never sits in memory.

VoiceToText streams the mix straight into a 16-bit mono WAV at 16 kHz, about 115 MB an hour. The 44-byte header is written first with zero sizes and patched when the recording ends. Left at that, a crash or power cut would leave a file whose header says it is empty, so every five seconds the writer also patches the sizes and calls synchronize(), which makes the header and the samples it counts durable together.

Recordings are written to a temporary folder first. When the app opens, it looks there for anything a crash left behind, repairs the header from the file’s actual length and files it into History, marked as not yet transcribed. A failed write, usually a full disk, ends the recording through the same path as a stream error, rather than letting the clock run on over audio that is being dropped.

StreamingWAVWriter.append(_:) (simplified)SwiftView on GitHub ↗
func append(_ samples: [Float]) {
    guard !finalized, !didFail, !samples.isEmpty else { return }
    do {
        try handle.write(contentsOf: WAVEncoder.int16LEData(from: samples))
        totalSamples += samples.count
        samplesSinceHeaderSync += samples.count
        // Every 5 seconds: make the header describe what's on disk, then flush,
        // so a crash or power cut costs seconds instead of the whole file.
        if samplesSinceHeaderSync >= sampleRate * 5 {
            samplesSinceHeaderSync = 0
            try patchSizes()
            try handle.seek(toOffset: UInt64(headerSize + totalSamples * bytesPerSample))
            try handle.synchronize()
        }
    } catch {
        failure = error  // the recorder sees this and stops the recording
    }
}

Expect the stream to stop without you, and keep what it caught.

A stream can end on its own: the user stops sharing from the macOS menu bar, the display it was attached to disconnects, Screen Recording is turned off mid-call, or macOS stops the capture. ScreenCaptureKit reports each through stream(_:didStopWithError:) on your SCStreamDelegate, with an SCStreamError code. VoiceToText treats that like a press of Stop: it finalizes the file, transcribes it, saves anything longer than a second to History, and then opens its window with a card saying when and why the recording stopped, since the user is probably in another app and believes it is still recording.

Two smaller things keep long recordings alive. While a meeting records or transcribes, the app holds a ProcessInfo activity with .idleSystemSleepDisabled, so idle sleep can’t cut a call short. And the converter rebuild and stall guard above cover a microphone that changes format or stops delivering audio mid-call.

MeetingInterruption.reason(for:): what the user is told (excerpt)SwiftView on GitHub ↗
let nsError = error as NSError
if nsError.domain == "com.apple.ScreenCaptureKit.SCStreamErrorDomain" {
    switch nsError.code {
    case -3817:  // SCStreamErrorUserStopped
        return "capture was stopped from the macOS screen-sharing indicator"
    case -3821:  // SCStreamErrorSystemStoppedStream (macOS 15+)
        return "macOS stopped the audio capture"
    case -3815, -3814:  // NoCaptureSource, NoDisplayList
        return "the display it was capturing from was disconnected"
    case -3801:  // SCStreamErrorUserDeclined
        return "Screen Recording permission was turned off"
    case -3804, -3805:  // the capture service's connection failed
        return "macOS's screen capture service stopped unexpectedly"
    default:
        break
    }
}
return trimmedDescription(of: error)

Hand the finished file to a speech model in chunks.

VoiceToText transcribes after the recording stops, not while it runs. A recording longer than 12 minutes is read off disk in chunks of about 10 minutes, each cut at the quietest point within 15 seconds of the target, so cuts fall in pauses where it can. Only the current chunk and its search window are in memory, however long the meeting ran.

Each chunk after the first is given the last 200 characters of the previous chunk’s text as a context prompt, which keeps names and punctuation consistent across the cut on Whisper-style models. A chunk that comes back empty over speech is tried once more without the prompt; if it is still empty, the transcript says so with a marker like [untranscribed 12:30–14:10] instead of silently skipping ahead. Cloud engines that split long audio themselves, like the app’s OpenAI models, get the whole recording instead. The default model runs on the Mac, so audio leaves it only if the user picks a cloud model.

When a commercial meeting SDK or bot service makes sense.

Local capture records what one Mac hears. Some products need more than that, and that is where paid meeting SDKs and recording bots come in. They differ, so check each vendor’s own documentation; these are the usual reasons teams choose one.

No Mac in the loop

A bot joins the call from a server, so recordings happen even when nobody on your side has your app open. Local capture needs your app running on a participant’s Mac for the whole call.

Every platform

ScreenCaptureKit and Core Audio taps are Apple APIs. If the same feature has to work on Windows, Linux or the web, a cross-platform SDK or a bot saves you writing and maintaining a capture layer per platform.

One track per participant

Locally you get the call app’s audio as one mixed stream, plus your own microphone. Separating the remote speakers takes a diarization model. A service with access to the meeting platform may offer per-participant audio or speaker names.

Hosted transcription and storage

If you want transcripts, storage, retention and search handled for you, a hosted service bundles them. On the Mac you choose the model and where files live, which is more work and more control.

What it costs, and what to plan for.

Cost. ScreenCaptureKit, Core Audio and AVFAudio are part of macOS and its SDK, with no license fee and no per-minute charge for capture. Your running cost is transcription: nothing for a model on the Mac, or a cloud provider’s per-minute price if you send the audio out.

macOS version. System audio through ScreenCaptureKit needs macOS 13. The microphone in the same stream needs macOS 15, and Core Audio process taps need macOS 14.2. VoiceToText requires macOS 15.0 or later, so it uses ScreenCaptureKit for both sources with no fallback path. Its capture code is the same on Apple Silicon and Intel; only local transcription speed differs.

Prompts and policies. Users see two system prompts on first use, and a no can only be undone in System Settings. On a work Mac, the organization’s policy may decide whether these permissions can be granted at all, so test on a managed Mac if you sell to companies.

Consent. Local capture adds no participant and sends no notice to the other people on the call. Telling them is up to your users, and recording laws vary by place; some require everyone’s consent. Put that in your onboarding rather than leaving it to chance.

Questions developers ask.

Is there a free SDK for recording meetings on macOS?

Yes, in the sense that macOS includes one. ScreenCaptureKit captures the audio other apps play (macOS 13 and later) and the microphone (macOS 15 and later), and Core Audio process taps (macOS 14.2 and later) are another route to app audio. They ship with macOS and Xcode, with no license fee or usage charge. You write the permission handling, mixing, file writing and transcription yourself, or reuse an open-source implementation such as VoiceToText’s.

Which macOS version do I need?

macOS 13 for system audio through ScreenCaptureKit, macOS 14.2 for Core Audio process taps, and macOS 15 to capture the microphone in the same ScreenCaptureKit stream. On macOS 13 and 14 you can record the microphone separately with AVAudioEngine and mix the two yourself. VoiceToText itself requires macOS 15.0 or later.

Do I need Screen Recording permission just to record audio?

With ScreenCaptureKit, yes. Audio capture goes through the same consent as screen capture, which System Settings lists under Privacy & Security as Screen & System Audio Recording. The microphone needs its own Microphone permission. Core Audio process taps instead ask for system audio recording permission the first time you record from the tap, and need an NSAudioCaptureUsageDescription string in the app’s Info.plist.

Can I capture audio from only one app, such as Zoom?

Yes. ScreenCaptureKit filters audio by application, so a content filter built with SCContentFilter(display:includingApplications:exceptingWindows:) and the app’s SCRunningApplication records only that app’s sound. It can’t filter audio to a single window or browser tab, so a call in a browser means recording the whole browser. A Core Audio process tap can likewise include only chosen processes.

How do Mac apps record meetings without a bot?

They record on the Mac instead of joining the call. The app captures the audio the call app plays, which is the other participants, through ScreenCaptureKit or a Core Audio tap, captures the microphone for your side, and mixes or stores the two. Nothing is added to the meeting, so it works with any call app, but only while the app runs on a participant’s Mac.

Does ScreenCaptureKit separate the speakers?

No. It gives you the apps’ audio as one stream and the microphone as another, so you can tell your side from everyone else’s if you keep them apart. Telling the remote speakers apart takes a diarization model. VoiceToText mixes both sources into one file and labels speakers only with an optional cloud model.

Can I reuse VoiceToText’s code?

Yes. VoiceToText is open source under the MIT license, so you can copy, modify and ship its capture, mixing and WAV-writing code in your own app, commercial or not, as long as you keep the copyright and license notice. The meeting code is in the Meetings and Audio folders of the GitHub repository.

Check the claims at the source.

Read the code, or just use the app.

VoiceToText is free and open source under the MIT license. Download it to record and transcribe your calls, or open MeetingRecorder.swift and take what you need.

Get it free