Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Sound waves for Audio recording in Android

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.

like image 843
Nikhil Avatar asked Dec 19 '12 10:12

Nikhil


People also ask

How can you see sound waves?

You can see sound waves when a microphone is connected to an oscilloscope. A microphone changes the sound waves into an electrical signal. The oscilloscope then shows what these electrical waves look like.

Is there an app that shows sound waves?

Spectroid is an Android app which is used as a real-time audio spectrum analyzer.


1 Answers

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.

like image 132
Andrei Mankevich Avatar answered Oct 04 '22 10:10

Andrei Mankevich