Silero VAD v6.2.1 CoreML
Overview
Highlights
- Native CoreML acceleration for iOS and macOS devices
- Low-latency real-time speech boundary detection
- Reduces power consumption by filtering non-speech audio
- Ideal for pre-processing voice-to-text pipelines
- Lightweight footprint with minimal system overhead
Usage
# Install Hugging Face transformers
pip install transformers torch
# Load model with transformers
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("aufklarer/Silero-VAD-v6.2.1-CoreML")
tokenizer = AutoTokenizer.from_pretrained("aufklarer/Silero-VAD-v6.2.1-CoreML")
Hugging Face Download
We recommend downloading the model via the Hugging Face CLI or Hub SDK.
Guidance:Before downloading, install huggingface_hub with:
pip install -U huggingface_hub
CLI Download
Download the full repository
huggingface-cli download aufklarer/Silero-VAD-v6.2.1-CoreML
Download a single file to a local folder (e.g. config.json into ./dir)
huggingface-cli download aufklarer/Silero-VAD-v6.2.1-CoreML config.json --local-dir ./dir
See the official docs for more CLI options
SDK Download
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('aufklarer/Silero-VAD-v6.2.1-CoreML')
Git Download
Make sure git-lfs is installed first
git lfs install
git clone https://huggingface.co/aufklarer/Silero-VAD-v6.2.1-CoreML
To skip LFS large-file downloads, use:
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/aufklarer/Silero-VAD-v6.2.1-CoreML
Model files are hosted on the Hugging Face Hub — download directly via HF CLI / SDK / Git, not through this site.
PyTorch / Transformers Usage
Install Transformers
pip install -U transformers torch
Load the model and run inference
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('aufklarer/Silero-VAD-v6.2.1-CoreML')
tokenizer = AutoTokenizer.from_pretrained('aufklarer/Silero-VAD-v6.2.1-CoreML')
Model Download
We recommend downloading the model via the ModelScope CLI or SDK.
Guidance:Before downloading, install ModelScope with:
pip install modelscope
CLI Download
Download the full repository
modelscope download --model aufklarer/Silero-VAD-v6.2.1-CoreML
Download a single file to a local folder (e.g. README.md into ./dir)
modelscope download --model aufklarer/Silero-VAD-v6.2.1-CoreML README.md --local_dir ./dir
See the docs for more CLI options
SDK Download
# 模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('aufklarer/Silero-VAD-v6.2.1-CoreML')
Git Download
Make sure git-lfs is installed first
git lfs install
git clone https://www.modelscope.cn/aufklarer/Silero-VAD-v6.2.1-CoreML.git
To skip LFS large-file downloads, use:
GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/aufklarer/Silero-VAD-v6.2.1-CoreML.git
ModelScope 模型页直接下载模型文件;无需将模型文件放在本站服务器。
Notebook Quickstart
Install the ModelScope library
pip install "modelscope[audio,cv,nlp,multi-modal,science]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html
Load the model and run inference
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
p = pipeline('text-generation', 'aufklarer/Silero-VAD-v6.2.1-CoreML')
Full Documentation
---
license: mit
language:
- en
tags:
- audio
- speech
- voice-activity-detection
- coreml
- ios
- macos
base_model:
- snakers4/silero-vad
library_name: coreml
pipeline_tag: voice-activity-detection
---
Silero VAD v6.2.1 CoreML
CoreML export of Silero VAD v6.2.1 for Apple platforms. The package includes a drop-in 32 ms streaming model and a faster 256 ms aggregate variant.
Model Table
| Model | Format | Precision | Input | New audio per call | Size |
|---|---:|---:|---:|---:|---:|
| silero_vad.mlmodelc | CoreML mlprogram | Float16 | [1, 1, 576] | 512 samples / 32 ms | 640 KB |
| silero_vad_256ms.mlmodelc | CoreML mlprogram | Float16 | [1, 1, 4160] | 4096 samples / 256 ms | 760 KB |
Both variants use explicit LSTM state tensors:
| Name | Shape | Description |
|---|---:|---|
| audio | [1, 1, 576] or [1, 1, 4160] | 64-sample left context plus current audio |
| h | [1, 1, 128] | LSTM hidden state |
| c | [1, 1, 128] | LSTM cell state |
| probability | [1] | Speech probability |
| h_out | [1, 1, 128] | Updated hidden state |
| c_out | [1, 1, 128] | Updated cell state |
Files
| File | Description |
|---|---|
| silero_vad.mlmodelc/ | 32 ms streaming CoreML bundle |
| silero_vad_256ms.mlmodelc/ | 256 ms aggregate CoreML bundle using noisy-OR over eight internal 32 ms windows |
| config.json | Runtime metadata, shapes, upstream version, and variant list |
Performance
Benchmarked on an Apple Silicon Mac using a 50-file VAD set with 2,445.9 seconds of audio, onset 0.25, offset 0.20, min speech 0.25s, min silence 0.10s.
| Model | File F1 | Span F1 | Precision | Recall | FAR | Miss Rate | Throughput |
|---|---:|---:|---:|---:|---:|---:|---:|
| v5.1.2 CoreML baseline | 100.00% | 86.27% | 100.00% | 75.86% | 0.00% | 24.14% | 410.0xRT |
| v6.2.1 silero_vad.mlmodelc | 98.04% | 87.47% | 99.98% | 77.74% | 3.44% | 22.26% | 412.4xRT |
| v6.2.1 silero_vad_256ms.mlmodelc | 92.59% | 93.88% | 99.97% | 88.49% | 7.80% | 11.51% | 1442.2xRT |
The 32 ms variant preserves the existing streaming interface and is the safest drop-in replacement. The 256 ms variant is substantially faster and more recall-oriented, but uses coarser probability frames.
Usage
import CoreML
let config = MLModelConfiguration()
config.computeUnits = .all
let modelURL = Bundle.main.url(forResource: "silero_vad", withExtension: "mlmodelc")!
let model = try MLModel(contentsOf: modelURL, configuration: config)
For a complete Swift runtime, see:
Source
Converted from snakers4/silero-vad, tag v6.2.1.