Currently unpublished and a proof of concept
This module implements the rdk:component:sensor
API in an viam-labs:sensor:audio-in
model.
With this model, you can capture audio data from any audio input, like a microphone, as a sensor.
Uses malgo as the cross-platform audio driver.
Note
For more information, see Modular Resources.
For Linux, make sure PulseAudio, PipeWire, or ALSA is available and set up for the audio input device.
For MacOS, no setup is required.
The make build
command is used to compile the cross-platform binaries to distribute as the entrypoint of the module. It requires zig
as the compiler. The .mise.toml
config will automatically install zig
using mise
.