Skip to content

Commit e06b5c3

Browse files
nadlabakQuarx2k
authored andcommitted
call rec: set encoding bitrate to 18000 for slightly better quality
Change-Id: I1e08ef6a62e8f7e633e0f69daf1e0a999bd399f1
1 parent 3de193c commit e06b5c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/com/android/phone/PhoneUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,6 +2122,7 @@ static void startRecording(String address, String inOut) {
21222122
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_RECOGNITION);
21232123
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
21242124
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
2125+
recorder.setAudioEncodingBitRate(18000);
21252126
recording = createRecordingTempFile(dirName);
21262127
if (recording == null) {
21272128
recorder.release();
@@ -2139,7 +2140,7 @@ static void startRecording(String address, String inOut) {
21392140
recorder.start();
21402141
} catch (IOException e) {
21412142
Log.e("PhoneUtils", "io problems while preparing [" +
2142-
newRecordingName + "]: " + e.getMessage());
2143+
newRecordingName + "]: " + e.getMessage());
21432144
recorder.release();
21442145
recorder = null;
21452146
}

0 commit comments

Comments
 (0)