Expand description
Audio device abstraction for microphone capture and speaker playback.
Requires the audio-device feature flag (backed by cpal).
On headless systems without audio hardware, the module compiles but
device enumeration returns empty lists.
Structs§
- Audio
Capture - Audio capture stream that reads from a microphone.
- Audio
Config - Configuration for audio capture/playback.
- Audio
Device Info - Describes an audio device (input or output).
- Audio
Playback - Audio playback stream that writes to a speaker.
- Test
Tone Generator - Test tone generator that produces audio frames for device testing.
Enums§
- Device
Selector - Audio device selection criteria.
- Device
Type - Type of audio device.
Functions§
- audio_
unavailable_ reason - Returns a reason why audio is unavailable, or empty string if available.
- is_
audio_ available - Check if any audio device is available.
- list_
devices - List all available audio devices (input and output).
- list_
input_ devices - List available input (microphone) devices.
- list_
output_ devices - List available output (speaker) devices.