Skip to content

Instantly share code, notes, and snippets.

@lithid
Created August 20, 2013 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lithid/6284594 to your computer and use it in GitHub Desktop.
Save lithid/6284594 to your computer and use it in GitHub Desktop.
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mRecorder.setAudioChannels(2);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
mRecorder.setAudioEncodingBitRate(96000);
mRecorder.setAudioSamplingRate(44100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment