The emulator can only record in 8000hz sample rate, so yes it will
always sound like crap. A real device can do higher quality recording.


On Oct 16, 2:17 pm, Nick <nickel...@gmail.com> wrote:
> Hey, I have a problem with andriod programing when I try to record and
> then play the file that was just recored. I can both record and play
> the sound but the quality stinks. Its not just bad is really hard to
> listen to and sound abit like its a computer generated voice... I use
> the andriod SDK-emulator. The code that sets up the recording looks
> like this;
>
> MediaRecorder recorder = new MediaRecorder();
> recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
> recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
> recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
> recorder.setOutputFile(path);
> recorder.prepare();
> recorder.start();
> And the code playing the file later looks like this;
>
> MediaPlayer mp = new MediaPlayer();
> mp.reset();
> mp.setDataSource(path);
> mp.prepare();
> mp.start();
> I dont know what part that makes the audiofile sound really bad... or
> if its just the emulator that makes it bad and that it would work on a
> real phone. I would love some help with this.
>
> /Nick

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to