Android: Audio Recording with voice level visualization

后端 未结 4 1439
再見小時候
再見小時候 2021-02-01 08:32

I need to create a android application which is for recording voice while showing the voice(sound) level visualization.

I already created an audio recording application

4条回答
  •  醉酒成梦
    2021-02-01 09:14

    If you're using the MediaRecorder class and visualization based on peak amplitude is ok you can use the getMaxAmplitude() method to continuously poll for the "maximum absolute amplitude that was sampled since the last call".
    Scale that amplitude down into an index that determines how many of your app's graphical volume bars to light up and you're set.

提交回复
热议问题