title: How to configure MediaRecorder to record audio in WAV format at 48KHz in Android Studio?
body: <p>So far I have this: With this code I can configure Media Recorder to record in 3gp, but i need to record in WAV for a later process.</p>
  
  <pre><code>private void setupMediaRecorder() {
      mediaRecorder = new MediaRecorder();
      mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
      mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
      mediaRecorder.setAudioEncoder(MediaRecorder.OutputFormat.AMR_NB);
      mediaRecorder.setOutputFile(MainActivity.PATH_TEMP_RECORDING);
  }
  </code></pre>