From e1fe988d296aeca75dbedbce107d5704b0c804d7 Mon Sep 17 00:00:00 2001 From: GP Date: Fri, 16 Aug 2019 13:19:18 +1200 Subject: [PATCH] Revert "changed audio codec and sampling + bit rates (#74)" (#75) This reverts commit 76b17dc6813a60efe3e4ed43039015c0533d3354. --- .../nz/org/cacophony/birdmonitor/RecordAndUpload.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/nz/org/cacophony/birdmonitor/RecordAndUpload.java b/app/src/main/java/nz/org/cacophony/birdmonitor/RecordAndUpload.java index 431469b2..dcc602f0 100644 --- a/app/src/main/java/nz/org/cacophony/birdmonitor/RecordAndUpload.java +++ b/app/src/main/java/nz/org/cacophony/birdmonitor/RecordAndUpload.java @@ -206,16 +206,12 @@ private static void makeRecording(Context context, long recordTimeSeconds, boole // Sampling configuration mRecorder.setAudioChannels(1); - mRecorder.setAudioSamplingRate(48000); + mRecorder.setAudioSamplingRate(16000); // Encoding configuration mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); // MPEG_4 added in API 1 - if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN) { - mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.HE_AAC); // HE_AAC added in API 16 (JELLY_BEAN) - }else{ - mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); // AAC added in API 10 - } - mRecorder.setAudioEncodingBitRate(384000); + mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); // AAC added in API 10 + mRecorder.setAudioEncodingBitRate(256000); mRecorder.prepare();