python-string-similarity icon indicating copy to clipboard operation
python-string-similarity copied to clipboard

Predictions result array empty - minimum duration?

Open snkashis opened this issue 7 years ago • 4 comments

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

snkashis avatar Feb 05 '18 20:02 snkashis

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

igor-panteleev avatar Feb 06 '18 10:02 igor-panteleev

This also happened to me. I solved it by changing the sample rate of the audio from 16k to 8k.

Ana

anavc94 avatar Dec 03 '18 12:12 anavc94

My file is already in 8k sr and I am still getting blank prediction. Is their a size/length limitation?

mswipedata avatar Mar 19 '19 10:03 mswipedata

worked after I added 'data = data.astype('int8')

New to it so that might be the sample rate

mswipedata avatar Mar 19 '19 10:03 mswipedata