Closed BackPackerDz closed 8 years ago
Maybe it's due to the difference of audio record config, I'll give some investigation into it.
@BackPackerDz Hi, after several test, I find out that if I use high sample rate and encoding bit rate when I use MediaRecorder
to record the audio (FileActivity
), the sound quality will be improved a lot, and it's nearly the same as the audio recorded using AudioRecord
(StreamActivity
).
Try the updated demo.
@Piasy I tested and it's AMAZING, now it's better than Stream Mode ! thank you !
Code?
I have used this.
mAudioRecorder = AudioRecorder.getInstance();
mAudioFile = new File(
Environment.getExternalStorageDirectory().getAbsolutePath() +
File.separator + System.nanoTime() + ".file.m4a");
mAudioRecorder.prepareRecord(MediaRecorder.AudioSource.MIC,
MediaRecorder.OutputFormat.MPEG_4, MediaRecorder.AudioEncoder.AAC,
mAudioFile);
mAudioRecorder.startRecord();
audio quality is very poor.
What to change here in my code.
use high sample rate and encoding bit rate
@Piasy yes but how? I don't know how to do that
Please RTFSC :)
Hi, thank you for this library but when I tested the demo, the sound quality is very poor in FileActivity compared to StreamActivity, it's normal ?