switch to aac with slightly heigher sample and bit rate. fixes #3021

This commit is contained in:
Daniel Gultsch 2018-05-11 10:08:45 +02:00
parent 678fcf8b31
commit 170fbf0de3

View file

@ -87,9 +87,9 @@ public class RecordingActivity extends Activity implements View.OnClickListener
mRecorder = new MediaRecorder(); mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.HE_AAC); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
mRecorder.setAudioEncodingBitRate(48000); mRecorder.setAudioEncodingBitRate(96000);
mRecorder.setAudioSamplingRate(16000); mRecorder.setAudioSamplingRate(22050);
setupOutputFile(); setupOutputFile();
mRecorder.setOutputFile(mOutputFile.getAbsolutePath()); mRecorder.setOutputFile(mOutputFile.getAbsolutePath());