devicehive / devicehive-audio-analysis

Apache License 2.0
196 stars 80 forks source link

Predictions result array empty - minimum duration? #5

Open snkashis opened 6 years ago

snkashis commented 6 years ago

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
igor-panteleev commented 6 years ago

Hi! There are shouldn't be any limitations. My suggestions are:

anavc94 commented 5 years ago

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

Ana

mswipedata commented 5 years ago

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

mswipedata commented 5 years ago

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

New to it so that might be the sample rate