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.

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.