Rust Quick Start
- Linux (x86_64)
- macOS (x86_64, arm64)
- Windows (x86_64)
- NVIDIA Jetson Nano
- Raspberry Pi (Zero, 2, 3, 4)
- Rust 1.54+
Download and install Rust .
Initialize and begin recording:
Read a frame of audio:
To stop recording:
Selecting an Audio Device
To get a list of available audio devices:
The index of the device in the returned list can be used in
PvRecorderBuilder to select that device for audio capture:
For the PvRecorder Rust SDK, we offer a demo application that demonstrates how use
PvRecorder to record audio to an output audio file.
Clone the PvRecorder GitHub Repository :
--help flag to see the usage options for the demo:
Run the following to see what devices are available for audio capture:
Run the demo with the desired audio device (or -1 for the default one) and an output file path:
For more information about our PvRecorder demo for Rust, head over to our GitHub repository .