Tag Archives: dogs

Twitter for dogs

via Raspberry Pi

Henry Conklin’s dog, Oliver, is one of those very vocal dogs who likes to try to let you know what he’s thinking. By barking. A lot. Henry says:

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.

Screen Shot 2015-08-19 at 12.58.14

Henry has built a system around a Raspberry Pi that listens out for sounds over a certain volume, and triggers a recording when that constraint is met.


But there are things in Oliver the dog’s vicinity which are also pretty noisy, so a second, filtering step is needed. Henry says:

Oliver barking is by far the loudest thing within several miles, so the volume threshold should be sufficient. However, the recordings are still triggered occasionally by unwanted junk. To guard 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.

The output is forwarded to the Twitter API, where they’re published by an account called @OliverBarkBark. Right now, a random string of barks, woofs, howls, and ruffs are published, but Henry is looking at adding some more sophistication by designing a dog-to-text translator which will say “bark” when Oliver barks, “ruff” when Oliver ruffs, and “woof”…you get the idea.


All the code you’ll need to replicate the scheme in your own house (you’ll need a dog first) is available on Henry’s GitHub at https://github.com/HenryWConklin/barkdetect. Thanks Henry, and please give Oliver a biscuit for us.

The post Twitter for dogs appeared first on Raspberry Pi.

Laser Dog Monitor

via Raspberry Pi

Dave Young lives in Denver with a baby, a wife, and a dog called Penny. Penny’s a good dog (good dog, Penny!) – she’s a softie around the baby, walks to heel, and doesn’t destroy things. All that good dog stuff.

But Penny has one weak spot. Dave says:

Her only issue is that she goes BONKERS for food. My wife and I have done a great job training it out of her when we’re around so we no longer have to worry about a cheese board sitting on the low coffee table, but I know she gets on the counters any time we are away. Sounds like a job for a machine!

How’s it work? There’s a laser tripwire, which triggers audio of Dave saying “Hey!” in a COMMANDING MANNER. The setup also takes a picture of Penny’s infraction using the Raspberry Pi camera board.

Full instructions are available over at Element14 so you can make your own. I’m already thinking about ways you could expand this project: Mooncake, the Raspberry Pi cat, doesn’t respond well to voice commands, but we think a Pi-powered water pistol could be just the ticket on those days we want to defrost prawns. Ideas for your own feature-creep in the comments please!

The post Laser Dog Monitor appeared first on Raspberry Pi.