Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

ten-vad

> AI 编程
Open source

Voice Activity Detector (VAD) : low-latency, high-performance and lightweight

2.2K stars0 likes0 views
WebsiteGitHub

About

Voice Activity Detector (VAD) : low-latency, high-performance and lightweight


Latest News

  • [2025/11] WASM build guide and browser test demo are now available in lib/Web and examples.
  • [2025/11] We supported Python inference with ONNX model on Linux, macOS thanks to Guy Nicholson!
  • [2025/11] We supported Golang on Linux, macOS and Windows with usage of the prebuilt-libs thanks to hylarucoder!
  • [2025/11] We supported Java on Linux, macOS, Windows, Android with usage of the prebuilt-libs thanks to ZhangYang(arthasking123)!
  • [2025/07] Exciting news! TEN VAD is now integrated into k2-fsa/sherpa-onnx, thanks to the fantastic work by Fangjun Kuang! You can now achieve more precise speech segment extraction and enjoy an enhanced ASR experience! Refer to the documentation and give it a try!
  • [2025/07] We supported Python inference on macOS and Windows with usage of the prebuilt-libs!
  • [2025/06] We finally released and open-sourced the ONNX model and the corresponding preprocessing code! Now you can deploy TEN VAD on any platform and any hardware architecture!
  • [2025/06] We are excited to announce the release of WASM+JS for Web WASM Support.

Table of Contents

  • Welcome to TEN
  • TEN Hugging Face Space
  • Introduction
  • Key Features
    • High-Performance
      • Performance Comparison
    • Agent-Friendly
    • Lightweight
    • Multiple Programming Languages and Platforms
    • Supported Sampling Rate and Hop Size
  • Developers Testimonial
  • Installation
  • Quick Start
    • Python Usage
      • Linux / macOS / Windows
    • JS Usage
    • Java Usage
    • Go (Golang) Usage
    • C Usage
      • Linux
      • Windows
      • macOS
      • Android
      • iOS
  • TEN Ecosystem
  • Ask Questions
  • Citations
  • License

Welcome to TEN

TEN is an open-source framework for conversational voice AI agents.

TEN Ecosystem includes TEN Framework, Agent Examples, VAD, Turn Detection and Portal.


Community Channel Purpose
Follow TEN Framework on X for updates and announcements
Follow TEN Framework on LinkedIn for updates and announcements
Join our Discord community to connect with developers
Join our Hugging Face community to explore our spaces and models
Join our WeChat group for Chinese community discussions

[!IMPORTANT]

Star TEN Repositories ⭐️

Get instant notifications for new releases and updates. Your support helps us grow and improve TEN!



TEN Hugging Face Space

https://github.com/user-attachments/assets/725a8318-d679-4b17-b9e4-e3dce999b298

You are more than welcome to Visit TEN Hugging Face Space to try VAD and Turn Detection together.


Introduction

TEN VAD is a real-time voice activity detection system designed for enterprise use, providing accurate frame-level speech activity detection. It shows superior precision compared to both WebRTC VAD and Silero VAD, which are commonly used in the industry. Additionally, TEN VAD offers lower computational complexity and reduced memory usage compared to Silero VAD. Meanwhile, the architecture's temporal efficiency enables rapid voice activity detection, significantly reducing end-to-end response and turn detection latency in conversational AI systems.


Key Features

1. High-Performance:

The precision-recall curves comparing the performance of WebRTC VAD (pitch-based), Silero VAD, and TEN VAD are shown below. The evaluation is conducted on the precisely manually annotated testset. The audio files are from librispeech, gigaspeech, DNS Challenge etc. As demonstrated, TEN VAD achieves the best performance. Additionally, cross-validation experiments conducted on large internal real-world datasets demonstrate the reproducibility of these findings. The testset with annotated labels is released in directory "testset" of this repository.


Note that the default threshold of 0.5 is used to generate binary speech indicators (0 for non-speech signal, 1 for speech signal). This threshold needs to be tuned according to your domain-specific task.

1.1 Performance Comparison

Developers can reproduce the performance comparison PR curves for TEN VAD and Silero VAD on the open-source testset (as shown in the figure above) by executing the following script on Linux x64 with a simply one line of code. The output figure will be saved in the same directory as the script.

bash
cd ./examples
python plot_pr_curves.py

2. Agent-Friendly:

As illustrated in the figure below, TEN VAD rapidly detects speech-to-non-speech transitions, whereas Silero VAD suffers from a delay of several hundred milliseconds, resulting in increased end-to-end latency in human-agent interaction systems. In addition, as demonstrated in the 6.5s-7.0s audio segment, Silero VAD fails to identify short silent durations between adjacent speech segments.


3. Lightweight:

We evaluated the RTF (Real-Time Factor) across five distinct platforms, each equipped with varying CPUs. TEN VAD demonstrates much lower computational complexity and smaller library size than Silero VAD.

Platform CPU RTF Lib Size
TEN VAD Silero VAD TEN VAD Silero VAD
Linux AMD Ryzen 9 5900X 12-Core 0.0150 / 306KB 2.16MB(JIT) / 2.22MB(ONNX)
Intel(R) Xeon(R) Platinum 8253 0.0136
Intel(R) Xeon(R) Gold 6348 CPU @ 2.60GHz 0.0086 0.0127
Windows Intel i7-10710U 0.0150 / 464KB(x86) / 508KB(x64)
macOS M1 0.0160 731KB
Web macOS(M1) 0.010 277KB
Android Galaxy J6+ (32bit, 425) 0.0570 373KB(v7a) / 532KB(v8a)
Oppo A3s (450) 0.0490
iOS iPhone6 (A8) 0.0210 320KB
iPhone8 (A11) 0.0050

4. Multiple Programming Languages and Platforms:

TEN VAD provides cross-platform C compatibility across five operating systems (Linux x64, Windows, macOS, Android, iOS), with Python bindings optimized for Linux x64, with wasm for Web.

5. Supported Sampling Rate and Hop Size:

TEN VAD operates on 16kHz audio input with configurable hop sizes (optimized frame configurations: 160/256 samples=10/16ms). Other sampling rates must be resampled to 16kHz.

Developers Testimonial

"We selected TEN VAD because it provides faster and more accurate sentence-end detection in Japanese compared to other VADs, while still being lightweight and fast enough for live use." - LiveCap,Hakase shojo.

"TEN VAD's overall performance is better than Silero VAD. Its high accuracy and low resource consumption helped us improve efficiency and significantly reduce costs." - Rustpbx.


Installation

bash
git clone https://github.com/TEN-framework/ten-vad.git

Quick Start

The project supports five major platforms with dynamic library linking.

Platform Dynamic Lib Supported Arch Interface Language Header Comment
Linux libten_vad.so x64 Python, C, Java, Go ten_vad.h
ten_vad.py
ten_vad.js
TenVad.java
Windows ten_vad.dll x64, x86 C, Java, Go
macOS ten_vad.framework arm64, x86_64 C, Java, Go
Web ten_vad.wasm / JS
Android libten_vad.so arm64-v8a, armeabi-v7a C, Java
iOS ten_vad.framework arm64 C 1. not simulator
2. not iPad

Python Usage

1. Linux / macOS / Windows

Requirements

  • numpy (Version 1.17.4/1.26.4 verified)

  • scipy (Version >= 1.5.0)

  • scikit-learn (Version 1.2.2/1.5.0 verified, for plotting PR curves)

  • matplotlib (Version 3.1.3/3.10.0 verified, for plotting PR curves)

  • torchaudio (Version 2.2.2 verified, for plotting PR curves)

  • Python version 3.8.19/3.10.14 verified

Note: You could use other versions

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Caudioautomatic-speech-recognitionconversational-aireal-time

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.