RustAudio/cpal
Low-level cross-platform audio I/O library in Rust observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 4283
- days_rel: 17
- days_push: 10
- n_releases_24m: 90
Adoption not part of the score
3913 stars · 535 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
CPAL is a low-level cross-platform audio input/output library written in Rust. It provides device enumeration, stream configuration, and building input/output streams across many platforms and backends.
Use cases
- capture microphone input in a Rust application
- play raw audio samples to speakers
- enumerate audio devices and their supported configurations
- build a low-latency audio stream with ASIO or JACK
- record system audio on macOS via loopback
- run audio I/O in the browser via Web Audio API
When to choose
- you need direct, low-level control over audio devices and streams in Rust
- you need cross-platform audio I/O including mobile and WebAssembly
- you need low-latency playback or capture with optional ASIO/JACK backends
When to avoid
- you just want simple high-level playback of audio files - use Rodio instead
- you need audio processing, mixing, or DSP features - cpal only handles I/O
- you are not working in Rust
Facets
library · maturity stable
audio-processing cross-platform windows wasm rust cross-platform audio-io playback recording alsa coreaudio wasapi jack pipewire low-level audio linux macos android ios
2 sources
- readme: https://github.com/RustAudio/cpal · fetched 2026-08-28 · 257dd8b5a505
- registry_crates: https://crates.io/api/v1/crates/cpal · fetched 2026-08-29 · 5a0a62cf0747
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| RustAudio/cpal | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem