title: Media recorder reduce output file size
body: <p>I record audio file using media recorder
  And i want to reduce the output file size or quality
  How to Reduce the output file size with low quality?</p>
  
  <p>This is my code</p>
  
  <pre><code>private MediaRecorder recorder = null;
  
  int audioformat = Integer.parseInt(prefs.getString(Preferences.PREF_AUDIO_FORMAT, "1"));
      switch (audioformat) {
      case MediaRecorder.OutputFormat.THREE_GPP:
          suffix = ".3gpp";
          break;
      case MediaRecorder.OutputFormat.MPEG_4:
          suffix = ".mpg";
          break;
      case MediaRecorder.OutputFormat.RAW_AMR:
          suffix = ".amr";
          break;
  
      }
  
       recorder.setAudioSource(audiosource);        recorder.setOutputFormat(audioformat); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
    recorder.setOutputFile(recording.getAbsolutePath());
  </code></pre>