So i am trying to pass the amplitude data from fragment to recycler view and update the visualiser but i am not able to send the amplitude continuously it goes for the first time and that’s it here is what i have used I am able to get the continue data in the onVolumeChanged method ..
I am new in Android developpement and I want to extract the sampling raw of the whole audio file. In fact, I am saving an audio file using the phone MIC based on the code below: mediaRecorder = new MediaRecorder(); mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); path = Environment.getExternalStorageDirectory().getAbsolutePath()+"/test.m4a"; mediaRecorder.setOutputFile(path); mediaRecorder.setAudioChannels(1);//Max number of channels==>To make the treatment easier? ..
I am working on a simple audio recorder and player app, when working on the recording feature, I can use MediaRecorder.maxAmplitude to get the amplitude then show the sound wave view. After recording and when playback the audio, I want to get the same attribute for maxAmplitude from the MediaPlayer, but I didn’t find the ..