Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw waveform of Android's audio recording?

Tags:

android

I would like to show a waveform during the audio recording. Some example please?

Thank you.

like image 659
Giuseppe Avatar asked Jan 06 '12 07:01

Giuseppe


People also ask

What is audio waveform?

Term: Waveform (sound) Definition: The generic term waveform means a graphical representation of the shape and form of a signal moving in a gaseous, liquid, or solid medium. For sound, the term describes a depiction of the pattern of sound pressure variation (or amplitude) in the time domain.

How do you make an audio on Android?

Swipe down from the top of your screen to see the quick settings tiles and tap the screen recorder button. A floating bubble will appear with a record and microphone button. If the latter is crossed out, you're recording internal audio, and if it's not, you get sound straight from your phone's mic.


1 Answers

You can look at the answer here : Voice Detection in Android Application to find out how to record into a byte[]. Then all you have to do is draw a graph of each value in the byte[] as a function of time.

like image 84
Axis Avatar answered Oct 25 '22 15:10

Axis