Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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?? #3

Open
sulaimankhan7 opened this issue Dec 7, 2016 · 1 comment

Comments

@sulaimankhan7
Copy link

    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

@songw9s8x7
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants