ARM-software / ML-KWS-for-MCU

Keyword spotting on Arm Cortex-M Microcontrollers
Apache License 2.0
1.13k stars 417 forks source link

Completely wrong predictions on own wav files #143

Open oezguensi opened 3 years ago

oezguensi commented 3 years ago

When I try to run my own audio recordings using label_wav.py, I always get random predictions. I trimmed the audio files to only contain the keyword and still receive false outputs. Does anyone experience the same?

LeeJiangWei commented 3 years ago

Same experience here at first, but I probably solved it by checking the format of my own wav file. Your wav file should have the same format as those in training data. i.e., the sample rate is 22050 and bit rate is 256kb/s, the length of the audio must be exactly 1 second. You can check the details by looking at Google speech command dataset.