Expand description
This module enables to record audio and store the latest audio data in a synchronized
ringbuffer. See setup_audio_input_loop
.
It uses the cpal
crate to record audio.
Structs§
- Audio
DevAnd Cfg - Describes the audio input device that should be used and the config for the input stream. Caller must be certain, that the config works for the given device on the current platform.
Functions§
- list_
input_ devs - Lists all input devices for
cpal
. Can be used to select a device forsetup_audio_input_loop
. - setup_
audio_ input_ loop - Sets up audio recording with the
cpal
library on the given audio input device.