Why would you want a 22000 sine wave (I’m assuming sine)? Your dog might be entertained, but very few humans are going to be able to hear it. Worse, if you play it in a sound system, you could fry the tweeter into smoking ruin. Your first indication of damage will be smell, not sound.
Coincidence? Prescience? I’m actually trying to put together (i know, for the umpteenth unsuccessful time) an anti-barking file for a couple of the neighbors’ dogs. I did not mention that since it ends up being a distraction in any thread/conversation devolving into neighborly relations, animal cruelty, rights/responsibilities, etc, etc, etc.
I have a program called “Digital Dogsitter”. It’s ostensible purpose is to record your own soothing voice, or a soothing voice .wav file from the web, that will respond to your pet whenever it barks. If you are away at work or short vacation the software will run, voice/bark activated and calm your dog while you’re away.
I realized that the software could just as readily be used to package a desktop file of irritating tones to a horn loaded piezo directed at the fenceline so that when Eddie, the little terrier/terror mix next door is left alone by his owners to defend the property while they dine out till midnight, commences to snarling and barking at (what seems) 110db if I should as much as flinch in my own yard or driveway all evening long, ALL EVENING LONG, Digital Dogsitter would respond with a ten second blast of equally irritating noise to back him off.
I’ve read may tales of how ineffective these anti-bark tones are. I’m still determined to experiment with tones, warbles, sirens, white noise, or other, that is beyond the range of kids in the area, but irritating to dogs. Understanding that dogs hearing can range upwards of 45Khz and even the best young human ears cannot exceed 20Khz there seems to be ample room for experimentation.
Digital Dogsitter only accepts .wav files or microphone input. I’m using a five year old HP 8510w business class “workstation” with mostly best-of-class components installed for its time. I think the soundcard can handle this. I can supply the exact card id if necessary.
I noticed that Audacity has settings for “sound activated recording”. Does it handle sound activated playback? If so, I could dispense with the Digital Dogsitter entirely.
So the 22khz is not critical. Any tone that I can play with that exceeds 20khz and I can save and replay as a 10 second file would be ideal. If I can save it and load it into Digital Dogsitter it would be fine. It’s an extra simple GUI that allows threshold settings for voice level activation and play. If Audacity is capable of the same that is all the better. But right now it looks as if I need audacity to create a ten second .wav of 20k or above in order to save to Digital Dogsitter and run from there.