This is used to train Bella, my puppy. Bella barks when I am not with her, so annoying. I'd like to play an audio saying 'NO Bella!' when she barks because she is at least trained to understand 'No'. I use web audio apis and webrtc to build this. Also, a motion detector is implemented. It detects motion and take a screenshot. I haven't got an idea on how to use it to monitor Bella yet :)
- Git clone this project
- Go to the directory
- Use a web server to serve it. For example,
python -m SimpleHTTPServer
- Open Firefox and go to
0.0.0.0:8000
(this may vary) - Select audio file(s) you want to play when threshold meets, they are played randomly.
- Set volume and frequency thresholds. Notice frequency has 256 levels only.
- Use the motion detector wisely.
- Fix cross-browser issue. Currently it works only on Firefox.