giulbia / baby_cry_rpi

19 stars 10 forks source link

Prediction not predicting the baby cry #5

Open crazyblack4 opened 5 years ago

crazyblack4 commented 5 years ago

Hi Giulbia,

Thanks for your work on baby cry prediction. I wanted to try it...I actually setup and generated egg & pkl files in PC, and docker is up on my rpi3 and mic and speaker are setup and tested with aplay & arecord...then i tried to run the "run.sh" played some baby cry audios....but it not able to predict below is the log...

root@raspberrypi:/opt/baby_cry_rpi/script# script/run.sh bash: script/run.sh: No such file or directory root@raspberrypi:/opt/baby_cry_rpi/script# cd .. root@raspberrypi:/opt/baby_cry_rpi# script/run.sh Welcome to Parenting 2.1 Start Recording... Recording WAVE '/opt/baby_cry_rpi/recording/signal_9s.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono Predicting... What is the prediction? /usr/local/lib/python2.7/dist-packages/librosa/init.py:40: DeprecationWarning: You are using librosa with Python 2. Please note that librosa 0.7 will be the last version to support Python 2, after which it will require Python 3 or later. DeprecationWarning) Prediction is 0 State of the Process PREDICTION = 0, PLAYING=0, # TIMES MY BABY CRIED=0 Start Recording... Recording WAVE '/opt/baby_cry_rpi/recording/signal_9s.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono Predicting... What is the prediction? /usr/local/lib/python2.7/dist-packages/librosa/init.py:40: DeprecationWarning: You are using librosa with Python 2. Please note that librosa 0.7 will be the last version to support Python 2, after which it will require Python 3 or later. DeprecationWarning)

any help will be appreciated.

thanks in advance :)

Rgds, ~~DG

crazyblack4 commented 5 years ago

it is detecting rarely, any advice to detect most baby cry audio ??