python-string-similarity
python-string-similarity copied to clipboard
Predictions result array empty - minimum duration?
I'm testing with an 18 second long file WAV and the predictions array is empty - is there a recommended minimum duration? Here is the avprobe output
Input #0, wav, from 'test.wav':
Metadata:
encoder : Lavf56.1.0
Duration: 00:00:18.25, bitrate: 256 kb/s
Stream #0.0: Audio: pcm_s16le, 16000 Hz, 1 channels, s16, 256 kb/s
Hi! There are shouldn't be any limitations. My suggestions are:
- Try different file e.g. this one
- Try to run
python capture.py
and pronounce something to mic for 5-10 seconds
This also happened to me. I solved it by changing the sample rate of the audio from 16k to 8k.
Ana
My file is already in 8k sr and I am still getting blank prediction. Is their a size/length limitation?
worked after I added 'data = data.astype('int8')
New to it so that might be the sample rate