File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments