close-circle
Close
0%
0%

A Twitter account for my dog

Detect barks and post them to Twitter

Similar projects worth following
close
Using a raspberry pi, a wifi dongle, and a microphone, I made an auto-posting twitter account for my dog. Follow @OliverBarkBark on twitter!

Oliver's first post

My dog Oliver has always been quite vocal, and recently I decided that his thoughts and comments needed to be shared with the world. Thus the @OliverBarkBark project was born. By connecting a Rasberry Pi, a wifi dongle, and a microphone, I was able to make a system that automatically detected, filtered, and published each and every one of Oliver’s deafening vocalizations.

The setup

The full process from bark to tweet takes three steps. First is recording. I have the raspberry pi listening continuously and triggering a recording once it hears a sound over a preset volume. Oliver barking is by far the loudest thing within several miles, so the volume threshold should be sufficient. However, the recordings are still triggered occaisonally by unwanted junk. To gaurd against this, I needed to perform a second step to filter the barks from the junk.

I took a machine learning approach to filter out the barks. I built a model using the pyAudioAnalysis library and around a day’s worth of barks (about 20). I then set up a bash script to run every ten minutes, classify each recorded sound, and forward the barks on to the next step.

Finally, the barks are forwarded to the twitter api (using python-twitter) and posted under the handle @OliverBarkBark (be sure to follow!). Currently the tweets are random strings composed of “bark,” “ruff,” and “woof.” I plan to replace that with a bark-to-text translator that will likely produce similar results but be more accurate to Oliver’s actual voice.

Check out all the code: https://github.com/HenryWConklin/barkdetect

Oliver on guard

Next step: weekly podcasts.

  • 1 × Raspberry Pi
  • 1 × USB Microphone
  • 1 × USB Wifi dongle

  • Future Plans

    Henry Conklin08/17/2015 at 18:34 0 comments

    Currently, the tweets are randomly generated. I would like to replace that with a more sophisticated bark-to-text system at some point.

    Also, I plan to put together a weekly podcast of all of his barks for the given week. Shoot me an email at henrywconklin@gmail.com if you are interested in being interviewed!

View project log

Enjoy this project?

Share

Discussions

carpetony wrote 02/25/2017 at 15:38 point

Thisis so awesome! I'm always looking for fun things to do with my pi. 

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates