3

I'm writing a simple Voice Recording app in Android and want to display a waveform based on the voice input. I have gone through the Visualizer class and got it to work with the playback of the voice recording (through MediaPlayer)

        mVisualizer = new Visualizer(mediaPlayer.getAudioSessionId());

But I'm not sure how to do this with the MediaRecorder class. Is there a way to use the Visualizer class for MediaRecorder or is it meant only for MediaPlayer? Ideally I want similar wave forms for both recording & playback.

AndroidDev
  • 5,193
  • 5
  • 37
  • 68

0 Answers0