Sorry for pushing up this old topic, but I want to do the same and there wasn't too much discussion about this.
I am still in the "collecting information stage". A few things I found out before I asked my question:
• A high pitch noise may stop a barking dog
• Dogs don't like the 20-30KHz range
• I have some speakers that give me 100dBa at 25KHz (and go up to 50KHz)
• I like to use a simple 555 based sound generator to find the right frequency
• It will not work on all dogs (never mind that)
• I know that there are solutions on the market, still........
The sound output circuit should be no problem.
But I like to use the barking as a trigger. Therefore I like to get some ideas how to analyze an incoming sound and filter out not-barking noises.