Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator: Audio Input Failed

Whenever I attempt to launch an emulator these errors appear in the console:

audio: Failed to create voice `goldfish_audio_in'
qemu-system-i386.exe: warning: opening audio input failed

Everything else in the emulator still works besides the audio. Has anyone found a solution to this issue? Switching the Graphics option on the AVD to Software - GLES 2.0 did not work. Any help is appreciated.

like image 339
Devashru Patel Avatar asked Jul 06 '16 21:07

Devashru Patel


People also ask

How can I use microphone in Android emulator?

If you want to use the host audio data, you can enable that option by going to Extended Controls > Microphone and enabling Virtual microphone uses host audio input. This option is automatically disabled whenever the emulator is restarted.

How do I record audio on my Android emulator?

You need to add audio recording + playback support to the emulator (Android SDK and AVD manager -> Virtual devices -> Edit -> Hardware -> New). Then use the [MediaRecorder API][1] to record (MediaRecorder. AudioSource. MIC).

Why is my Android Emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.


1 Answers

Here how to fix this:

  1. Go to Control Panel->Sound->Recording.
  2. Make sure your default hardware, "Realtek Audio Default Device" (the one integrated in the motherboard) is enabled.

I disabled it by mistake trying to get my speakers to work and completely forgot...

like image 146
user8922280 Avatar answered Oct 04 '22 19:10

user8922280