soundtouch-android icon indicating copy to clipboard operation
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??

Open sulaimansust opened this issue 8 years ago • 1 comments

    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

sulaimansust avatar Dec 07 '16 07:12 sulaimansust

mediaRecorder can't process audio data by yourself,but you can use audioRecord to get mircphone data and process it

songw9s8x7 avatar Jun 30 '17 03:06 songw9s8x7