Piwho icon indicating copy to clipboard operation
Piwho copied to clipboard

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

Open gbernal opened this issue 6 years ago • 1 comments

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

gbernal avatar Jul 26 '18 02:07 gbernal

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.

Adirockzz95 avatar Jul 30 '18 12:07 Adirockzz95