Bark activated doggy door

I'd like to have a doggy door that unlocks when a dog barks. Any suggestions for a sound sensor that could detect a dog bark?

You might look at the "knock" example in the IDE examples, and modify it to use a microphone.