Skip to main content

Module capture

Module capture 

Source
Expand description

cpal-based microphone capture: 16kHz mono i16 PCM audio recording.

Tries the ideal config (16kHz mono) first. When the device doesn’t support it — common on macOS — falls back to the device’s native sample-rate and channel count and resamples to 16kHz mono in the audio callback.

Structs§

CpalRecorder
Records microphone audio via cpal, always producing 16kHz mono i16 output.

Functions§

list_devices
Lists all available audio input device names.