I bet if you were given six months and high quality recordings of different types of gunfire you could figure out how to do it algorithmically.<p>It&#x27;s all about having a large enough corpus of input, both of the type you&#x27;re looking for and the type you&#x27;re looking to exclude. This is an undergraduate level problem to solve.