Query noise level in Android

前端 未结 2 493
小鲜肉
小鲜肉 2021-02-03 12:36

I want to develop a small Android app to measure the current noise level (probablyin dB). But I have no idea what to look for in the libs. I don\'t want to record the noise. Can

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-03 13:19

    I recommend looking in these classes:

    android.media.AudioFormat
    android.media.AudioManager
    android.media.AudioTrack
    

    We used them in the Blinkendroid audio package a short while ago.

提交回复
热议问题