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

Predictions result array empty - minimum duration? #5

Open
snkashis opened this issue Feb 5, 2018 · 4 comments
Open

Predictions result array empty - minimum duration? #5

snkashis opened this issue Feb 5, 2018 · 4 comments

Comments

@snkashis
Copy link

snkashis commented Feb 5, 2018

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
Copy link
Contributor

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

@anavc94
Copy link

anavc94 commented Dec 3, 2018

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

Ana

@mswipedata
Copy link

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

@mswipedata
Copy link

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

New to it so that might be the sample rate

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

4 participants