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

Could not detect voice activation whenever the signal start at the beginning #3

Open
g1y5x3 opened this issue Dec 1, 2018 · 1 comment

Comments

@g1y5x3
Copy link

g1y5x3 commented Dec 1, 2018

Hi,

First, thank you for implementing this package.
I was using it to per-process my voice signal but I encounter a problem with the signal particularly starts at the beginning. For example, this is the plot of the signal,
image

And after I ran through VAD, the vectors it returns was like the following
[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0. 0.]

However, if I manually insert some noise at the beginning of the signal, such like
image
The VAD works as normal and returns the correct detection:

Just wondering if there could be fix inside the algorithm inside the function itself! Would love to help if the problem is not clear or you can let me know how to fix it!

@eesungkim
Copy link
Owner

I think it is probably because of estimating noise power spectrum. Try to convert 'p' on the line 18 of 'estnoise_ms.py' to small value instead of #p=pSpectrum[0,:]

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

No branches or pull requests

2 participants