Views
No views yet
mod_fireredvad
(FreeSWITCH module) and fireredvad-dart (Flutter package).model.pth.tar files and require
torch + kaldi at inference time. This repo strips them down to a single
flat float32 blob plus a JSON CMVN file, suitable for embedding in C,
Dart, or any runtime that just wants fread() + matmul.| File | Size | Description |
|---|---|---|
fireredvad.bin | 4.41 MB | FRVD weights — VAD + AED, LE float32 |
fireredvad.json | 3.2 KB | CMVN stats (means, inv_std) — 80 bins |
export_frvd.py | — | Reproducible export script (PyTorch → FRVD) |
cmvn.ark from the same upstream repo, converted to JSON.| VAD (Stream-VAD) | AED | |
|---|---|---|
| Input dim (mel bins) | 80 | 80 |
| Hidden | 256 | 256 |
| Projection | 128 | 128 |
| FSMN blocks (R) | 8 | 8 |
| Lookback order (N1) | 20 | 20 |
| Lookahead order (N2) | 20 (skipped at inference) | 20 |
| Output classes | 1 (sigmoid) | 3 (softmax) |
| Parameters | 567,937 | 588,931 |
1offset size field
20 4 bytes magic = "FRVD"
34 uint32 little-endian version = 1
48 float32[] VAD weights (see fireredvad.h::VadWeights)
5... float32[] AED weights (see fireredvad.h::AedWeights)inp_fc1_w[80*256], inp_fc1_b[256]inp_fc2_w[256*128], inp_fc2_b[128]fsmn0_lookback[128*20]{fc1_w[128*256], fc1_b[256], fc2_w[256*128], lookback[128*20]}out_fc1_w[128*256], out_fc1_b[256]out_fc2_w[256*1], out_fc2_b[1]inp_fc1_w[80*256], inp_fc1_b[256],
inp_fc2_w[256*128], inp_fc2_b[128]fsmn0_lookback[128*20], fsmn0_lookahead[128*20]{fc1_w, fc1_b, fc2_w, lookback, lookahead}out_fc1_w[128*256], out_fc1_b[256]out_fc2_w[256*3], out_fc2_b[3][in, out] (PyTorch's
Linear.weight transposed). Depthwise Conv1d filters are stored as
[P, K].1from huggingface_hub import hf_hub_download
2
3bin_path = hf_hub_download(
4 repo_id="eschmidbauer/fireredvad-c", filename="fireredvad.bin"
5)
6json_path = hf_hub_download(
7 repo_id="eschmidbauer/fireredvad-c", filename="fireredvad.json"
8)huggingface-cli download eschmidbauer/fireredvad-c --local-dir models/mod_fireredvad
loads the files directly:1Cmvn cmvn;
2VadWeights vad;
3AedWeights aed;
4
5fireredvad_load_cmvn("fireredvad.json", &cmvn);
6fireredvad_load_weights("fireredvad.bin", &vad, &aed);fireredvad-dart
bundles the same files as Flutter assets and parses them in pure Dart.export_frvd.py script downloads the upstream PyTorch checkpoints
and writes byte-identical fireredvad.bin + fireredvad.json:uv run export_frvd.pyuv from the inline PEP 723
metadata): torch, numpy, kaldiio, huggingface_hub, fireredvad.1@misc{fireredvad,
2 title = {FireRedVAD: A SOTA Industrial-Grade Voice Activity
3 Detection \& Audio Event Detection},
4 author = {Xu, Kaituo and Li, Wenpeng and Huang, Kai and Liu, Kun},
5 year = {2026},
6 howpublished = {\url{https://github.com/FireRedTeam/FireRedVAD}},
7}