From 3317246086142c339ca41e2d6776b5363322f4e1 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 17 May 2018 20:43:28 +0200 Subject: increase sample and bit rate for voice recording --- src/main/java/de/pixart/messenger/ui/RecordingActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/de/pixart/messenger/ui') diff --git a/src/main/java/de/pixart/messenger/ui/RecordingActivity.java b/src/main/java/de/pixart/messenger/ui/RecordingActivity.java index 545acd197..15d193886 100644 --- a/src/main/java/de/pixart/messenger/ui/RecordingActivity.java +++ b/src/main/java/de/pixart/messenger/ui/RecordingActivity.java @@ -86,8 +86,8 @@ public class RecordingActivity extends Activity implements View.OnClickListener mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); - mRecorder.setAudioEncodingBitRate(48000); - mRecorder.setAudioSamplingRate(16000); + mRecorder.setAudioEncodingBitRate(96000); + mRecorder.setAudioSamplingRate(22050); setupOutputFile(); mRecorder.setOutputFile(mOutputFile.getAbsolutePath()); -- cgit v1.2.3