Module audio_capture

Module audio_capture 

Source
Expand description

Audio capture module for microphone input Uses cpal for cross-platform audio recording with voice activity detection (VAD)

Structs§

AudioCaptureConfig
Audio capture configuration
AudioDeviceInfo
Audio device information

Functions§

is_microphone_available
Check if microphone is available
is_stop_requested
Check if external stop was requested
list_audio_input_devices
List all available audio input devices
record_audio
Record audio from the microphone until user stops speaking (4 seconds of silence) Returns the duration of recorded audio in seconds
request_stop_recording
Request the audio recording to stop from external code
reset_stop_flag
Reset the external stop flag (call before starting a new recording)