Skip to main content

Crate meeting_record

Crate meeting_record 

Source
Expand description

System-audio and microphone capture with meeting detection for macOS, Windows, and Linux.

use meeting_record::{meetings, Error, MeetingEvent, Platform};

let watcher = meetings::watch(|event, meeting| {
    if event == MeetingEvent::Started && meeting.should_record {
        // `platform` is a stable identifier, not a label: match on it.
        match meeting.platform {
            Platform::Zoom | Platform::Teams => { /* ... */ }
            _ => {}
        }
    }
})?;

Capture and watching are process-wide singletons. Both return a guard that stops them on drop.

Modules§

capture
meetings
permissions

Structs§

AudioChunk
AudioProcess
AudioTrack
One interleaved float32 PCM track; Source adds what only that track reports.
CancellationToken
Shared cancellation for capture and permission waits. Cancellation is permanent.
CaptureInfo
Actual capture scope and capabilities, reported by the native backend.
CaptureOptions
CaptureSession
Owns the audio tracks and their shared recording lifecycle.
Meeting
Microphone
What only the microphone track reports.
MicrophoneProcessing
Optional microphone effects for input rates from 8 to 192 kHz. All default off.
MixedAudio
Optional mono s16le mix. Read until None to consume the final tail.
MixedAudioChunk
MixedAudioOptions
Format of the optional mono s16le mixed output.
SystemAudio
What only the system-audio track reports.
Watcher
Stops watching when dropped.

Enums§

CaptureFallback
Details present only when the backend selects a fallback capture path.
CaptureState
CaptureTarget
Error
Failure from a permission, detection, or capture operation.
InterruptionReason
Reason for source loss.
MeetingEvent
MicrophoneSource
Permission
PermissionStatus
Windows has no prompts: system audio and accessibility are always granted, and the microphone follows its privacy settings.
Platform
Conferencing platform with a stable Platform::as_str identifier.
Track
TrackAvailability
Availability of a track’s sources, independent of pause and stop.
TrackEvent
Source availability changes independently of recording pause and stop. Lost devices are retried; exited apps require selecting a new process target.

Type Aliases§

MicrophoneTrack
SystemAudioTrack