How do you enable a microphone input in the android emulator

44,124

Solution 1

have you seen this tutorial? see the comment:

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.

Update

Now it is possible to record audio by android emulators, just need to enable it:

Extended controls (3 dots in emulator control bar) > Microphone > Virtual microphone uses host audio input

Solution 2

In 2021 there is an option in emulator settings to enable computer host microphone.enter image description here

Solution 3

To On/Off the microphone of emulator, write the command in terminal of android studio.

for On microphone : adb emu avd hostmicon

for Off microphone: adb emu avd hostmicoff

Share:
44,124
RenegadeAndy
Author by

RenegadeAndy

Updated on June 14, 2021

Comments

  • RenegadeAndy
    RenegadeAndy almost 3 years

    I have been on a rough ride trying to do something using the Speech recognition on an android emulator.

    Having finally installed the market place and the Google Voice Search app - I am so close to enabling my emulator to do what I want - recognize my speech. First I need to enable the emulator to record audio , or at least think that a microphone is present.

    I believe adb used to have the -mic option - however I dont think it exists anymore.

    Has anyone done this or can anyone shed some light on it.