Module live_input

Source
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§

AudioDevAndCfg
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 for setup_audio_input_loop.
setup_audio_input_loop
Sets up audio recording with the cpal library on the given audio input device.