Expand description
Audio capture module for microphone input Uses cpal for cross-platform audio recording with voice activity detection (VAD)
Structs§
- Audio
Capture Config - Audio capture configuration
- Audio
Device Info - 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)