soundtouch-android
soundtouch-android copied to clipboard
How can i can i get MediaRecorder Data on byte array/buffer or any kind of stream without sending them via socket or saving in phone memory??
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setOutputFile(fileDescriptor);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
try {
mRecorder.prepare();
} catch (IOException e) {
Log.e(LOG_TAG, "prepare() failed");
}
mRecorder.start();
I need to get data on byte array/buffer or stream without saving them in files
mediaRecorder can't process audio data by yourself,but you can use audioRecord to get mircphone data and process it