Skip to content

whisper : add Silero VAD built-in support #3003

Closed

Description

@ggerganov

It seems the Silero VAD project is a very good candidate for being integrated directly in whisper.cpp:

https://github.com/snakers4/silero-vad

The model appears to be very lightweight and can be used to extract voice activity timestamps that the user can then use to process with the core whisper.cpp functionality, avoiding non-speech segments.

The model data of Silero VAD is stored in ONNX data format. From a quick search, I cannot find where the actual model tensors and architecture are defined, so we'll have to do some reverse engineering to convert this to a GGUF file. The only information I was able to find is that the model uses a multi-head attention (MHA) + short-time Fourier transform, which shouldn't be a problem to implement within whisper.cpp.

Having an integrated VAD solution in the project would simplify the work of 3rd-party projects using whisper.cpp. It is also likely to improve the notoriously bad performance of the Whisper Large v3 models.

Activity

  1. added
    enhancement
    good first issue
    roadmap
    on Apr 4, 2025
  2. JRWSP commented on Apr 4, 2025

    @JRWSP

    I have been using the Silero VAD with whisper.cpp by making a script to manage files manually.
    Don't know if this is what you need.

    https://github.com/JRWSP/SileroVAD_for_Whisper-cpp

  3. tbarbugli commented on Apr 4, 2025

    @tbarbugli
  4. ggerganov commented on Apr 4, 2025

    @ggerganov
    MemberAuthor

    Thanks. The goal is to not depend on ONNX or python and to natively run the VAD using ggml.

  5. moved this from Todo to In Progress in whisper.cpp : roadmapon Apr 4, 2025
  6. danbev commented on Apr 8, 2025

    @danbev
    Member

    I want to try it.

    Just for your information and so we don't duplicate efforts, I've started working on this issue (if an issue is assigned it is most often being worked on). I hope to be able to share some progress soon.

    Sorry about the late response, I have gathered some notes about the progress and I hope to have a pull request for this next week (short week here due to Easter).

  7. basemkhirat commented on Apr 20, 2025

    @basemkhirat

    Thanks. waiting for it.

  8. 1 remaining item

  9. adechant commented on May 11, 2025

    @adechant

    Just tried out danbev's changes which add silero vad support. Unfortunately, it seems to break diarization when using akashmjn's models. Otherwise, it works well and obviates the need to load a separate onnx model for vad. Amazing work!

  10. turnkit commented on May 16, 2025

    @turnkit

    Just tried out danbev's changes which add silero vad support. Unfortunately, it seems to break diarization when using akashmjn's models. Otherwise, it works well and obviates the need to load a separate onnx model for vad. Amazing work!

    So can this new version do BOTH diarization and Silero VAD? I really would love both features. (And additionally, even preprocessing light noise removal I think might improve transcription quality.)

  11. diimdeep commented on May 22, 2025

    @diimdeep
  12. WilliamTambellini commented on Jun 5, 2025

    @WilliamTambellini
    Contributor
  13. zk309118-blip commented on Sep 1, 2026

    @zk309118-blip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issueroadmap

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions