Search code examples
androidaudioaudio-recordingaudiorecordandroid-audiorecord

Calculate elapsed time from AudioRecord


How to calculate the elapsed time from AudioRecord in Android?

What I am trying to do is similar to this: figure 5(Second graph). To further explain myself I'm recording sound in real time then graphing out the pitch and calculating the buffered data within a certain time.


Solution

  • Just calculate it, you know the size of your recorded data and you also should know sample rate, and number of channels. So the comment posted by Michael is correct.