I've found several answers (like this one) that tell it is possible to record audio in Android Emulator. But I didn't succeed in finding any suitable setting in Android Virtual Device Manager and I still get an exception on the line recorder.SetAudioSource(AudioSource.Mic)
.
Asked
Active
Viewed 7,857 times
6

Community
- 1
- 1

SiberianGuy
- 24,674
- 56
- 152
- 266
3 Answers
6
In the documentation of MediaRecorder
you can see that:
Note: Currently, MediaRecorder does not work on the emulator.
Even in the last API.
But I saw that in the class AudioRecord
, there is no note for this.
More then that, I have found this code:
AudioRecord recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,
8000, AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT, 500000);
recorder.startRecording();
From here. And the code's author said that this code works in the emulator.
0
found this
You guys are not able to record sound in emulator because the android emulator doesn’t support it yet. This code should only work on the phone.
a Source

Mohamed ALOUANE
- 5,349
- 6
- 29
- 60
-
I also found this article. But it is 5 years old while the answer I reference in the topic was created two years after that. And the guy in the answer describes some very specific settings which wouldn't exist if Android Emulator didn't support Audio Recording. The problem is that I didn't find those settings. – SiberianGuy Oct 17 '14 at 18:33
-
Also Note: The Android Emulator does not have the ability to capture audio, but actual devices are likely to provide these capabilities. [link](http://developer.android.com/guide/topics/media/audio-capture.html) – Mohamed ALOUANE Oct 17 '14 at 18:38
-
It is pretty much the same answer. The problem is that I can not find Android SDK and AVD Manager. I have SDK Manager and AVD Manager installed but can not find Android SDK and AVD Manager – SiberianGuy Oct 17 '14 at 18:45