Devashru Patel
Devashru Patel

Reputation: 71

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.

Upvotes: 5

Views: 32702

Answers (6)

Vasyl Nahuliak
Vasyl Nahuliak

Reputation: 2478

In my case, the bug was through the included headphones (with the microphone) by USB

Upvotes: 0

Suraj
Suraj

Reputation: 96

Plugin something in the microphone pin and voila.. the error goes away... for some reason, it needs the microphone .. AMD Ryzen 1600, the hypervisor is on, windows 10 pro 1903.

Upvotes: 0

shtolik
shtolik

Reputation: 1368

For me it wasn't working because I was remotely logged in to PC with emulator. Had to allow record audio in Remote Desktop settings (Local Resources tab -> Remote audio -> Settings -> Allow remote audio recording)

Upvotes: 1

Rob Turner
Rob Turner

Reputation: 21

Phil's answer is correct but I can't comment on it directly:

This happens because ... There is in fact no available host audio input (nothing plugged to PC "audio in" or PC "audio in" already in use and cannot be shared)!

this was enough to get to complete the apk build and run on an AVD (API level 21 + android 5.0 / x86_64, with gpu graphics: Software GLES 1.1)

Under Windows start -> Control_panel-> Sound-> Recording -> microphone -> disable

-untested: -mic disabled + hardware graphics - As Phil suggested, mic plugged in probably works around the bug

I'd guess a mic is a requirement for working with Pixel AVD's that has been accidental applied to older non-pixel avds.

Upvotes: 2

user8922280
user8922280

Reputation: 61

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...

Upvotes: 6

Phil
Phil

Reputation: 21

This is not a bug and probably simply happens because... There is in fact no available host audio input (nothing plugged to PC "audio in" or PC "audio in" already in use and cannot be shared)!

Under Windows, please check into Control_panel->Sound->Recording that something is available as input, and if so, close any application that may exclusively use it (skype?).

Upvotes: 1

Related Questions