/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Библиотека
onnx
Опубликована
16 окт 2026

byosm-vad

Поиск речи в аудиоАудио → label3 профессии
0скачиваний за 30 дней0лайковвеса обновлены20 окт 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Компактная потоковая ONNX-модель определяет наличие человеческой речи в аудио по кадрам длительностью 10 мс для голосовых агентов.

byosm-vad — компактная модель для обнаружения голосовой активности, разработанная в рамках BYOSM. Она анализирует микрофонный аудиопоток и для каждого 10-миллисекундного кадра определяет, содержит ли он человеческую речь. Модель предназначена для потоковой работы на устройстве рядом с голосовым агентом; поставляется как пакет ONNX из 101 458 параметров для запуска через onnxruntime на CPU.

Модель использует JEPA-подобный энкодер с предварительным обучением LeJEPA и последующим обучением для обнаружения речи. Она относит к неречевым звукам тишину, шум, музыку и невербальные звуки человека, включая кашель, смех, дыхание и плач; короткие паузы до примерно 300 мс внутри высказывания считаются речью. В тесте на наборе ava указаны F1 0,8816 и ROC-AUC 0,9424, однако оценка основана на 20 тестовых примерах. Модель обучалась в том числе на ESC-50 с лицензией CC BY-NC 3.0; репозиторий распространяется по CC BY-NC 4.0, поэтому коммерческое применение ограничено условиями лицензий данных и модели.

Сценарии применения

  • Определение начала и окончания речи в микрофонном потоке
  • Фильтрация фонового шума перед обработкой голосовым агентом
  • Игнорирование кашля, смеха, дыхания и других неречевых звуков
  • Потоковое обнаружение речи на CPU без облачного сервиса

Ограничения

Оценка приведена для небольшого тестового набора из 20 примеров, поэтому результаты могут иметь широкую неопределённость. Коммерческое использование ограничено лицензией CC BY-NC 4.0 и лицензией обучающих данных ESC-50.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

byosm-vad

Voice activity detection for a realtime voice agent. For every 10ms of microphone audio, say whether a human is speaking. Must ignore background noise, coughs, laughter, door slams, keyboard, crying babies and other non-speech human sounds. Runs on-device next to the agent, streaming, in well under 1ms per frame.

A single-purpose System 1 model built with BYOSM: a JEPA-style encoder pretrained with LeJEPA and trained only for this task, with a calibrated decision policy, shipped as a 0.10M-parameter ONNX bundle that runs on any CPU with onnxruntime.

taskaudio / frame (one decision every 10 ms)
labelsnon_speech, speech
parameters101,458
backbonetiny-crnn · embedding dim 96
objectivef1, primary suite ava
decision policyhysteresis, threshold 0.425 (calibrated on ava's calib split)
CPU, streaming0.186 ms per 30 ms chunk, 1 thread (PyTorch; the ONNX bundle is faster)

Labels

  • non_speech: silence, noise, music, and non-verbal human sounds (coughing, laughing, breathing, crying)
  • speech: a frame inside an utterance of human speech, including pauses up to ~300ms inside an utterance

Comparison

Every model below, this one and the baselines, was scored by the same code on the same frozen test splits, with its decision policy calibrated on the same calib splits. Bold = this model.

modelparamsbuiltin f1ava f1 (primary)builtin ROC-AUCava ROC-AUC
v3 (this model)0.10M–0.8816–0.942
v2 (BYOSM experiment)0.10M–0.8763–0.939
silero (baseline)0.55M–0.8653–0.923
v1 (BYOSM experiment)0.10M–0.8485–0.900
energy (baseline)––0.7308–0.694

Test evaluation (this model)

suitedatasettest itemsf195% CIprecisionrecallROC-AUCavg precisiondecision threshold
avanccratliri/vad-human-ava-speech200.88160.863-0.8990.85460.91030.94240.95190.425

Usage

pip install huggingface_hub numpy onnxruntime soundfile
from huggingface_hub import snapshot_download
import sys
path = snapshot_download("bsye/byosm-vad")
sys.path.insert(0, path)
from byosm_rt import load

m = load(path)
import soundfile as sf
wav, sr = sf.read("clip.wav", dtype="float32")   # 16 kHz mono
print(m.predict(wav)["segments"])
emb = m.encode(...)                # the learned representation (JEPA-style), for probes / retrieval / other heads

Streaming

s = m.stream()
for chunk in mic_chunks():         # float32 mono, any size
    out = s.step(chunk)            # {"probs": [...per 10ms...], "speaking": bool, "events": [{"type": "start"|"end", "t_s": ...}]}

Local HTTP server

python byosm_rt.py serve . --port 8800
# GET /v1/models · POST /v1/vad/predict · POST /v1/vad/encode

How it was built

  1. Spec: labels, definitions, objective and data plan in spec.yaml (included in this repo).
  2. Data (8,400 training / 1,000 dev examples):
  1. LeJEPA pretraining (800 steps): multi-view prediction + SIGReg (isotropic-Gaussian regulariser on random projections), no EMA teacher, no stop-gradient.
  2. Supervised training: EMA of the weights, mixed precision; checkpoint chosen on dev (best epoch 16).
  3. Evaluation: frozen eval suites; decision policy calibrated on each suite's calib split; baselines scored identically; promotion decided on calib, test only reported.
  4. Improvement lineage (each step proposed by byosm improve from the previous board):
  • v1: initial spec
  • v2 ← real-data-ava (from v1): ava: objective 0.848 vs silero 0.855, 0.046 below builtin. The model has never seen this domain; train on the source's train partition (hash-disjoint from the suite's calib/test files).
  • v2 ← utterance-labels (from v1): ava: calibration had to move the decision threshold to 0.20 (P=0.824, R=0.875) -> the suite's label convention differs from training's. Training labels only voiced frames (gaps > 60ms are negative); segment suites usually label whole utterances. Fill gaps up to 300ms in synthetic labels.
  • v3 ← manual (from v2): train.ema=true train.holdout_test=auto

Limitations

  • Trained on the train partition of the source behind ava (file-level hash split, disjoint from that suite's calib/test files). Results there are in-domain; baselines may not have seen that domain.
  • Training data includes ESC-50 (CC BY-NC 3.0): non-commercial. Check licences before commercial use.
  • Evaluated on ava (20 test items). Small suites have wide confidence intervals.

Reproduce

git clone https://github.com/bsye/BYOSM && cd BYOSM && pip install -e .
# put spec.yaml from this repo at specialists/vad/spec.yaml, then:
byosm build vad && byosm board vad && byosm export vad

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · onnx

Нельзя запустить

Задача «voice-activity-detection» пока не поддерживается рантаймом.

Ревизия весов
70a34c7

0 моделей