Similar product already developed called Shot Spotter. Detection devices pick up the sound and are linked to Dispatch center for priority police response.
Our city has that set up. It is very accurate. Cops get there in three minutes instead of five. So you will only be mostly dead when they arrive.