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

How does the automatic recognition code works? I don't see audio being saved #10

Open
gbernal opened this issue Jul 26, 2018 · 1 comment

Comments

@gbernal
Copy link

gbernal commented Jul 26, 2018

Hi,

First of all thank you for sharing this awesome library!
I'm trying to implement the audio recording script which records audio and recognizes the speaker, but when I run it it only says
* Listening mic. recording..

It never stops, after looking in the vad.py file I don't see where the .wav file is stored , I'm probably missing something.

the only other thing I have done that could be causing an issue, I chaged the audio settings to
CHUNK =512
RATE =48000
this was done so pyAudio could work with my USB audio card C-media

Any help is appreciated!
Thanks

@Adirockzz95
Copy link
Owner

Try changing THRESHOLD & SILENCE variable values. Recording stops automatically after silence is detected. If you're in a noisy environment, try setting THRESHOLD value to ~3000.

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