Display Sound waves for Audio recording in Android
Asked Answered
A

1

9

How can we display sound waves as displayed in below image..

When user speaks, The yellow bars will animate based on user's volume.

enter image description here

Please guide me.. Is there any reference link available? Is there any sample tutorial available?

Same Question in iPhone. but i wants to it in Android.

Akan answered 19/12, 2012 at 10:58 Comment(0)
I
4

If you are using MediaRecorder for recording audio you can periodically request amplitude with MediaRecorder.getMaxAmplitude. Then you can create ClipDrawable from bars bitmap and use amplitude to set desired level.

Indene answered 19/12, 2012 at 11:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.