Microphone input

前端 未结 4 521
庸人自扰
庸人自扰 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条回答
  •  时光说笑
    2021-01-03 11:21

    It seems like AGC is in the media recorder. When I use AudioRecord I can detect shots using the amplitude even though it sometimes reacts on sounds other than shots. This is not a problem since the shooter usually doesn't make any other noise while shooting. But I will do some FFT too to get it perfect :-)

提交回复
热议问题