Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VAD workflow with Silero #1041

Open
desh2608 opened this issue Apr 25, 2023 · 2 comments
Open

VAD workflow with Silero #1041

desh2608 opened this issue Apr 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@desh2608
Copy link
Collaborator

          In terms of which VAD to apply, you can use e.g. SileroVAD: https://github.com/snakers4/silero-vad/wiki/Examples-and-Dependencies#examples

Actually a workflow/integration into Lhotse would be nice if somebody is willing to contribute that.

Originally posted by @pzelasko in #726 (comment)

@desh2608 desh2608 added the enhancement New feature or request label Apr 25, 2023
@csukuangfj
Copy link
Contributor

FYI: We have just integrated silero VAD into sherpa-onnx.
All you need is to run

pip install sherpa-onnx

You can find two Python examples below:

  1. https://github.com/k2-fsa/sherpa-onnx/blob/master/python-api-examples/vad-remove-non-speech-segments.py#L104
  2. https://github.com/k2-fsa/sherpa-onnx/blob/master/python-api-examples/generate-subtitles.py#L348

We also have a huggingface space that uses Silero VAD + non-streaming ASR models to generate
subtitles for videos/audios. Please see

The code related to VAD for the above huggingface space can be found at
https://huggingface.co/spaces/k2-fsa/generate-subtitles-for-videos/blob/main/decode.py

@pzelasko
Copy link
Collaborator

Cool! Maybe it would be interesting to create lhotse workflows that leverage sherpa (e.g. at the start they launch server subprocess and then spawn N clients to process data with sherpa).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants