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

Add dithering to the Speech2TextFeatureExtractor API. #34638

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KarelVesely84
Copy link

@KarelVesely84 KarelVesely84 commented Nov 7, 2024

What does this PR do?

It enables dithering, which exists in the original kaldi features.

The dithering is adding small Gaussian noise to the waveform on input of feature extraction.
This is helpful for audio signals with hard-zero sections due to HW VAD, these hard-zeros
may break the ASR training or inference if they appear in the data.

With dithering without a seed, the features become non-deterministic due to small Gaussian noise added to the audio (i.e. 2 runs lead to little different outputs). When debugging feature extraction code, it is good to set dithering to 0.0 (i.e. default value).

@KarelVesely84 KarelVesely84 force-pushed the add_dither branch 2 times, most recently from b7cb796 to 7706bae Compare November 7, 2024 13:06
- in kaldi : https://github.com/kaldi-asr/kaldi/blob/4a8b7f673275597fef8a15b160124bd0985b59bd/src/feat/feature-window.cc#L145
- with dithering without a seed, the features become non-deterministic due
  to small Gaussian noise added to the audio (i.e. 2 runs lead to little
  different outputs)
@KarelVesely84
Copy link
Author

Hello, is there somebody to look into this for a review ?
Thank you,
K.V.

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

Successfully merging this pull request may close these issues.

1 participant