Microphone input

前端 未结 4 548
庸人自扰
庸人自扰 2021-01-03 10:36

I\'m trying to build a gadget that detects pistol shots using Android. It\'s a part of a training aid for pistol shooters that tells how the shots are distributed in time an

4条回答
  •  Happy的楠姐
    2021-01-03 11:15

    It seems there's an AGC (Automatic Gain Control) filter in place. You should also be able to identify the shot by its frequency characteristics. I would expect it to show up across most of the audible spectrum, but get a spectrum analyzer (there are a few on the app market, like SpectralView) and try identifying the event by its frequency "signature" and amplitude. If you clap your hands what do you get for max amplitude? You could also try covering the phone with something to muffle the sound like a few layers of cloth

提交回复
热议问题