earshot
Library Featured
Ridiculously fast & accurate voice activity detection in pure Rust
- Downloads
- 164,695
- Dependents
- 14
- Stars
- 242
- Forks
- 10
- Contributors
- 2
- Commits
- 36
- Latest release
- 1.2.2 ·
About
Ridiculously fast & accurate streaming voice activity detection, written in pure Rust and also available for Python & C/C++.
Earshot achieves an RTF of 0.0003 (3,600x real time): 40x faster than Silero VAD v6 & TEN VAD - and more accurate, too!
Earshot operates on 16 millisecond frames of mono/stereo audio sampled at 16000 Hz & supports streaming. Earshot detects voice in any language and is resilient to most kinds of environmental noise with an SNR ≥ 3dB.
If you find Earshot useful, please consider sponsoring pyke.io.
Earshot, in black, performs markedly better than Silero VAD v6 and TEN VAD in blue and red.
Usage
- Python:
pip install earshot - C/C++:
earshot.h- Precompiled dylibs are available in releases
- Alternatively, build Earshot yourself with
cargo build --release --features __ffi
Rust
Read the full README
// Get per-frame probabilities from a real-time audio stream:
let mut detector = earshot::Detector::default();
let mut frame_receiver = ...
while let Some(frame) = frame_receiver.recv() {
// `frame` is Vec<i16> with length 256.
// Each frame passed to the detector must be exactly 256 samples (16ms) @ 16 KHz sample rate.
// f32 [-1, 1] slices/vecs are also supported here.
let score = detector.predict(&frame);
if score.is_voice() {
println!("Voice detected! Score: {:.1}%", score.raw * 100.);
}
// If the frame is interleaved stereo, use the Stereo wrapper:
let score = detector.predict(earshot::Stereo(&frame));
}
// Get segments from a full audio buffer:
for segment in earshot::segments(audio, &earshot::SegmenterOptions::default()) {
println!(
"Voice detected from {:.2}s - {:.2}s ({:.2}s)",
segment.start_secs(),
segment.end_secs(),
segment.duration_secs()
);
}
Binary & memory size
Earshot is very embedded-friendly: each instance of Detector uses ~8 KiB of memory to store the audio buffer & neural network state. Binary footprint is ~95 KiB; the neural network is 40 KiB of that.
In contrast, Silero's model is 2 MiB, TEN's is 310 KiB, but both require ONNX Runtime, which adds an additional 8 MB to your binary (+ a whole lot more memory).
#![no_std]
Earshot supports #![no_std], but it does require the libm crate. The std feature is enabled by default, so add default-features = false and features = [ "libm" ] to enable #![no_std]:
[dependencies]
earshot = { version = "1", default-features = false, features = [ "libm" ] }
Compatibility
- Runs on
- GPU support unknown
What shows it
- no dependency or feature matches a backend row
- Native code
- None found
- No native code found
- Python bindings
- No Python binding crate found
- License
- Apache-2.0 OR MIT
Compare with similar projects
Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
Ridiculously fast & accurate voice activity detection in pure Rust |
164,695 downloads over 30 days | 14 | 242 | 1.2.2 | GPU support unknown | No native code found | Apache-2.0 OR MIT |
|
Rust interface for the WebRTC Voice-Activity-Detction Module |
60,022 downloads over 30 days | 7 | 31 | 0.4.0 | GPU support unknown | Build uses a native toolchain: cc | MIT |
|
Voice Activity Detector using the Silero VAD model. |
36,149 downloads over 30 days | 11 | 64 | 0.2.1 | GPU support unknown | Binds native code: ort-sys | MIT |
|
qwen3-asr-rs Listed
Pure Rust implementation of Qwen3 ASR (Automatic Speech Recognition) with libtorch and MLX backends |
21 downloads over 30 days | 0 | 254 | 0.2.0 | CUDA | Binds native code: torch-sys (feature tch-backend). Build uses a native toolchain: cmake | Apache-2.0 |
|
voxr New
Audio and speech on boostr: compressed-audio decode, resampling, DSP and grapheme to phoneme, with speech synthesis (Kokoro, VITS), voice cloning (VoxCPM2), transcription with word timings (Whisper), voice activity (Silero) and audio-text scoring (CLAP), on CPU or CUDA. |
642 downloads over 30 days | 2 | 2 | 0.9.1 | CUDA | No native code found | Apache-2.0 |
|
flowcat New
Self-hosted native-Rust real-time voice-agent runtime — one binary, no Python or softswitch: transports, serializers, codec, and a speech-to-speech (Gemini Live) pipeline. |
46 downloads over 30 days | 0 | 127 | 0.1.0 | GPU support unknown | Binds native code: audiopus_sys (feature local), ort-sys (feature vad-ort), whisper-rs-sys (feature stt-whisper-local) | Apache-2.0 |
Why FeaturedIt passes every Featured gate.
What it meets
- It has 12 active dependents and 11 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days.
- Active dependents are at 100% of their peak. Featured needs at least 50%.
- Docs are present. The release commit or a manifest ties the crate to the repository.
- No vulnerability advisory stays unpatched past the grace window. At least one version is neither a prerelease nor 0.0.x.
- The last activity is on 30 Aug 2026, 71 days ago. The rules expect an update within 1200 days. Dormancy rule
Exact rules: Featured library. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 1.2.2 base 300, doubled for 164695 downloads per month, doubled for 12 active users: E = 1200 daysdormancy: last activity 2026-08-30, 71 days ago, E = 1200: activefeatured: featured: active_users 12, new_adopters 11, former_glory 1
Measurements and sources
Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.
Sources6 sources
- Description: the crates.io description
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption12 active dependents, 11 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 12 | crates.io database dump | Yes | |
| New dependents (365 days) | 11 | crates.io database dump | Yes | |
| Peak active dependents | 11.5 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 1 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 2 months ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2026-08-30 | GitHub repository | Yes | |
| Latest release | 2026-08-19 | crates.io database dump | Yes | |
| First release | 2024-09-29 | crates.io database dump | Yes | |
| Latest version | 1.2.2 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 130 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 0 | GitHub repository | Yes | |
| Repository archived | false | GitHub repository | Yes | |
| Repository gone | false | GitHub repository | Yes | |
| Release commit or manifest in the repo | true | crates.io package | Yes | |
| Published docs | true | crates.io database dump | Yes | |
| Latest release fails cargo check | Not measured | Yes | ||
| Build check date | Not measured | Yes | ||
| Build check toolchain | Not measured | Yes |
SecurityUnpatched vulnerabilities: none
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Unpatched vulnerabilities past the grace window | none | RustSec advisory database | Yes | |
| RustSec unmaintained advisory | none | RustSec advisory database | Yes | |
| Deprecation notice | none | crates.io database dump | Yes | |
| Deprecated requirement | none | crates.io database dump | Yes |
Distribution6 releases, 164,695 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 6 | crates.io database dump | Yes | |
| Downloads over 30 days | 164695 | crates.io database dump | Yes | |
| Binary downloads over the last 3 releases | Not measured | Yes | ||
| Homebrew installs on request over 365 days | Not measured | Yes | ||
| Repology repository families | Not measured | Yes | ||
| Docker pull growth over 90 days | Not measured | Yes | ||
| Docker pulls at the growth baseline | Not measured | Yes | ||
| Every version a prerelease | false | crates.io database dump | Yes | |
| Every version 0.0.x | false | crates.io database dump | Yes | |
| Every version yanked | false | crates.io database dump | Yes | |
| Crate deleted from crates.io | false | crates.io database dump | Yes |
Repository242 stars, 10 forks, 2 contributors, 36 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 242 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 10 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 2 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 36 | GitHub repository | No | |
| Repository's main crate left out of the entry | none | crates.io database dump | Yes |
Facts that never count
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| License | Apache-2.0 OR MIT | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | GPU support unknown | crates.io database dump | No | |
| What shows each backend | no dependency or feature matches a backend row | crates.io database dump | No | |
| Native code, from listed crates and their dependencies | No native code found | crates.io database dump | No | |
| Python bindings, from direct dependencies of listed crates | No Python binding crate found | crates.io database dump | No | |
| Crates that depend on a listed crate directly | 14 | crates.io database dump | No |
Corrections and review history
No correction applies to this entry.
Judgments
A judgment enters only through an approved issue and a merged pull request.
No judgment applies to this entry.