← Back to Leaderboard
TTEN-framework

TEN-framework/ten-vad

C and ONNX inference for low-latency, frame-level voice activity detection

Engineering Health (Methodology)
B+ · 67/100
Maintenance Activity
● Updated 3d ago
Latest Release
v1.0-ONNX
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption15/25
Release Cadence11/20
License Clarity6/20
CLI
Total Stars
★ 2,326
24h Growth
+1
7d Growth
+6
Forks
185

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

TEN-framework/ten-vad Star History (2025-05-13 - 2026-12-03) ALL-TIME STAR HISTORY (2025-05 – 2026-12) +2.3k in 569d · avg +4/day 2.5k 1.2k 0 2025-05-13: ★ 12025-06-21: ★ 5642025-07-26: ★ 9962025-08-30: ★ 1,3272025-10-04: ★ 1,4412025-11-08: ★ 1,5302025-12-13: ★ 1,6852026-01-17: ★ 1,8762026-02-21: ★ 1,9642026-03-28: ★ 2,0302026-05-02: ★ 2,0842026-06-06: ★ 2,1322026-07-11: ★ 2,1792026-08-15: ★ 2,2362026-09-19: ★ 2,2682026-10-24: ★ 2,2932026-12-03: ★ 2,326 ★ 2.3k 2025-05 2026-02 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

TEN VAD is a local inference component with a C interface in include/ten_vad.h, prebuilt platform artifacts under lib/, and a separate ONNX path using the model in src/onnx_model/. The caller creates a detector with a hop size and threshold, pushes successive blocks of 16 kHz audio, and consumes a speech probability and a binary flag for each frame. Capture, resampling, buffering, and turn policy sit outside the detector.

The integration surface is an in-process library rather than a network service. Python exposes TenVad, desktop platforms have C, Java, and Go integration paths, and the web build uses WASM with JavaScript. Python packaging uses setuptools >=70.1 and wheel, while the root requirements.txt lists NumPy. The manual ONNX examples have a separate native dependency on ONNX Runtime.

Key Capabilities & Differentiators

The detector operates at 16 kHz, with optimized hops of 160 or 256 samples (10 or 16 ms). The default threshold of 0.5 converts each score to a speech/non-speech flag; it is a starting point, not a universal operating point. The frame cadence lets a voice pipeline observe short pauses, but those hop durations are not guarantees of end-of-speech latency.

The published precision–recall comparison covers TEN VAD, Silero VAD, and WebRTC VAD on manually labeled audio. A Linux x64 plotting script reproduces the TEN VAD–Silero comparison from the included test set. Reported TEN VAD RTF ranges from 0.0050 on an iPhone 8 to 0.0570 on a Galaxy J6+ in the listed tests. Those results show real-time headroom on the tested devices; they do not establish capacity at a given concurrency.

Trade-offs & Limitations

On the Xeon Gold 6348, the reported RTF is 0.0086 for TEN VAD versus 0.0127 for Silero VAD. The Linux TEN VAD library is listed at 306 KB versus Silero's 2.16 MB JIT and 2.22 MB ONNX artifacts. That is useful evidence for footprint-sensitive integration, but it is not a like-for-like measurement of total deployed size or peak RAM, and most rows do not include a paired Silero RTF.

The illustrated speech-to-silence example favors TEN VAD over Silero, but neither that example nor a PR curve predicts how often an agent will cut off users in production. Compare alternatives on target audio, measuring false triggers, missed speech, and end-of-turn delay after threshold and hangover tuning. Also budget for resampling non-16 kHz inputs and review the applicable license before shipping: LICENSE and NOTICES are present, but the license type is unspecified in the repository metadata.

Hardware & Deployment Guide

For Linux Python, pip install ten-vad provides the shortest path on x64 or ARM64. The documented 1.0.6.10 ARM64 wheel targets glibc 2.27 or newer and bundles both the model and ONNX Runtime, so it does not need the ONNX Runtime Python package. For manual ONNX builds, use ONNX Runtime >=1.17.1 and pass its extracted root via --ort-path. Keep src/onnx_model/ resolvable when launching the demo from another working directory.

With prebuilt libraries, account for native loading: Linux may need libc++1, and Windows needs the DLL beside the executable or on PATH. Check the target ABI rather than assuming uniform binding support; the iOS table lists arm64 and excludes the simulator and iPad. packaging/Dockerfile is used to build an ARM64 wheel, not to run an inference service. On 2025-07-11, v1.0 shipped prebuilt cross-platform libraries, while v1.0-ONNX opened the ONNX path and updated the license terms.

Frame interface: 16 kHz input, optimized 160- and 256-sample hops, and per-frame probability plus a binary speech flag
Native integration: C header and platform libraries for Linux, Windows, macOS, Android, and iOS; WASM for JavaScript on the web
ONNX execution: model in src/onnx_model/; manual examples require ONNX Runtime 1.17.1 or newer
Reproducible evaluation: labeled testset/ and examples/plot_pr_curves.py for the TEN VAD–Silero comparison on Linux x64
Measured footprint: 306 KB Linux TEN VAD library and RTF of 0.0086 versus Silero's 0.0127 on the same Xeon Gold 6348
ARM64 packaging: the documented 1.0.6.10 manylinux wheel requires glibc 2.27 or newer and bundles the model and ONNX Runtime
Best For

Voice agents, streaming ASR, and on-device audio pipelines that need a local speech/non-speech signal and already control resampling and endpointing.

Skip If

You need transcription, speaker labels, or turn completion out of the box, or cannot accommodate 16 kHz input and platform-specific native packaging.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
pip install -U --force-reinstall -v git+https://github.com/TEN-framework/ten-vad.git

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
ten-vad ★2.3k+6C—C and ONNX inference for low-latency, frame-level voice activity detection
whisper.cpp55.8k+292C++MITNative C/C++ Whisper inference for offline speech-to-text on CPUs and accelerato
faster-whisper27.2k+147PythonMITLocal Whisper transcription with CTranslate2 for CPU and GPU
fish-speech34k+84Python—Self-hosted PyTorch speech inference for directed, multi-speaker audio

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/TEN-framework/ten-vad.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

TEN-framework/ten-vad Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about ten-vad

How do I connect TEN VAD to a streaming voice agent?

Resample the capture stream to 16 kHz if necessary, buffer 160 or 256 samples per call at the configured hop, and feed the speech probability or binary flag into your endpointing logic. Start with the default threshold of 0.5, then tune it on representative audio. The caller still decides how long a pause must last before ending a turn.

Do I need a GPU, and how should I size CPU and memory?

The documented deployment paths do not require a GPU. On an AMD Ryzen 9 5900X, the reported RTF of 0.015 corresponds to about 15 ms of compute per second of audio in that benchmark. It is not a per-frame or endpoint latency figure. Peak RAM and concurrent-stream limits are not reported, so measure them with your chosen backend, resampler, and stream count.

Can I self-host TEN VAD and redistribute it in a commercial product?

Inference can run locally without a hosted API. Commercial use and redistribution are separate questions: the repository includes LICENSE and NOTICES, and the v1.0-ONNX release changed the license terms, but the available metadata does not identify a license. Review the terms for the exact release and artifacts you intend to use or ship, including the model, native libraries, and any bundled ONNX Runtime.

How should I compare TEN VAD with Silero VAD and WebRTC VAD?

Use examples/plot_pr_curves.py on Linux x64 to reproduce the TEN VAD–Silero comparison on the labeled testset/. The published comparison also includes WebRTC VAD. Then test all candidates on the same target hardware and production-like audio. In a voice agent, false triggers and clipped speech endings at a given pause-detection latency are more useful selection criteria than a single PR curve.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining TEN-framework/ten-vad? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature TEN-framework/ten-vad on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare