Dog Bark Counter

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
Milesa1
Posts: 4
Joined: Wed Aug 03, 2016 2:57 pm
Operating System: Windows 7

Dog Bark Counter

Post by Milesa1 » Fri Aug 05, 2016 11:05 pm

I have a problem with my neighbors dog. The dog barks for several hours every day. I need to provide authorities with an audio recording of the barking. The recording is the easy part thanks to Audacity. However, for maximum impact, I would also like to include a bark "count". In other words, how many times the dog barked over the course of the recording. I originally counted the barks manually which was extremely time consuming since the sound file was 90 minutes long, but was amazed at the results. I counted 1937 barks in 90 min. That is powerful evidence!

Although the sounds (barks) are at random intervals, looking at the waveform and spectrogram of the audio clip, each bark is fairly well defined.
waveform view.png
barking dog Waveform
waveform view.png (26.12 KiB) Viewed 1479 times
spectrographic view.png
barking dog Spectrogram
spectrographic view.png (225.9 KiB) Viewed 1479 times
My Question: Is audacity capable of counting these "bark pulses" programmatically?
Thank you.
barking_dog_short.wav
A few seconds of Hell!
(971.04 KiB) Downloaded 72 times

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Dog Bark Counter

Post by kozikowski » Fri Aug 05, 2016 11:49 pm

I need to provide authorities with an audio recording of the barking.
Did the authorities actually say you needed to provide an audio recording? Public nuance triggers tend be from the logged number of calls and number of different phone numbers, not the number of barks. I'm betting none of the authorities has any way to listen to a sound file at work.

Audacity tends to fall apart when asked to critically analyze sound signatures and then take some action. The content analysis tools, what there is of them, don't lend themselves to programming and automation. Even something as simple as recognizing the spaces between songs on a record fails enough of the time that a lot of people give up and do it manually.

So no. Sorry.

How many neighbors call the authorities? Can you get up a little party, serve strong drink and make everyone promise to call, staggered so it looks natural?

Just from being able to speak a little dog, I can tell you that one thinks there is something very wrong which needs barking at. Do the owners go to the shopping center for hours and just leave him out there?

Koz

Milesa1
Posts: 4
Joined: Wed Aug 03, 2016 2:57 pm
Operating System: Windows 7

Re: Dog Bark Counter

Post by Milesa1 » Sat Aug 06, 2016 12:05 am

There are different complaint levels. Level 1 is a typical phone call. To elevate and accelerate the process, a video or audio recording is required by our county's animal control dept. Based on the audio or video they send an animal control officer to the offenders property, and issue the owner with an ultimatum. That when the fines start, and they get larger for each offense.

Unfortunately for the dog, the owners are young, uneducated and leave the dog outside for most of the day.

Parties are allowed, but continuous unsupervised noise lasting for months is something else entirely.

Thanks for your advice, I'll do some more digging.

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: Dog Bark Counter

Post by Robert J. H. » Sat Aug 06, 2016 2:06 am

Milesa1 wrote:I have a problem with my neighbors dog. The dog barks for several hours every day. I need to provide authorities with an audio recording of the barking. The recording is the easy part thanks to Audacity. However, for maximum impact, I would also like to include a bark "count". In other words, how many times the dog barked over the course of the recording. I originally counted the barks manually which was extremely time consuming since the sound file was 90 minutes long, but was amazed at the results. I counted 1937 barks in 90 min. That is powerful evidence!

Although the sounds (barks) are at random intervals, looking at the waveform and spectrogram of the audio clip, each bark is fairly well defined.
The attachment waveform view.png is no longer available
The attachment spectrographic view.png is no longer available
My Question: Is audacity capable of counting these "bark pulses" programmatically?
Thank you.
The attachment barking_dog_short.wav is no longer available
You can try my syllable counter plug-in (Speech-rate).
put the the attached file into the plug-in folder and enable it with "Add/Remove Plug-ins" under effects, Generate, or Analyze. It will appear in the latter menu.
rjh-syllable-count.ny
(1.37 KiB) Downloaded 74 times
1. make the track mono(Tracks menu)
2. Amplify or normalize to 0 dB.
3. select a few seconds and count the barks manually.
4. Call the plug-in "Speech Rate" under Analyze and set the parameters. start with a threshold of -12 dB--this works at least with your sample file. The interval should be OK, I guess.

As soon as the output shows the correct number of manually counted barks, you can select the whole file and do the analysis.

I hope this helps.
Robert

Post Reply