51

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.

RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
  • Neither the Android Market nor the Google Voice Search app are available for the emulator. – CommonsWare May 08 '11 at 10:34
  • 1
    Well, you say that but you can actually get the them both installed - so the only thing missing for me now is microphone support - which is what I am asking about – RenegadeAndy May 08 '11 at 12:11
  • 29
    I am simply trying my very hardest to use the emulator to test my speech recognition stuff using the emulator. I am becoming tired of your comments. Nothing I am doing is to encourage piracy, what a ridiculous claim. – RenegadeAndy May 08 '11 at 12:53
  • 6
    Why is this question only valid for pirated apps? there are a millions of use cases, where an app needs to use the microphone, not just google voice. – sydd Dec 17 '12 at 03:15
  • I agree with you renegade! I'm about to test emulator record features and mic is confusing! Who is talking piracy?? I will personally see any software pirate to Valhalla. – Lettings Mall Mar 25 '16 at 19:25

5 Answers5

44

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

Farshad
  • 3,074
  • 2
  • 30
  • 44
pageman
  • 2,864
  • 1
  • 29
  • 38
44

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

Babu
  • 4,324
  • 6
  • 41
  • 60
4

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

Abhijeet Sharma
  • 201
  • 3
  • 5
0

hi try by enabling the audio recording support while creating the virtual device in emulator... While creating device go to hardware part and select new button. A dialog will appear in which select the property combo and select "Audio Recording Support" and give k and apply...

Hope it helps... Let me know the output of it...

Dinash
  • 3,027
  • 4
  • 32
  • 45
  • Doesnt look like its working - SpeechRecorder app still isnt recording! – RenegadeAndy May 13 '11 at 18:51
  • hi if you are trying in the speech recorder after enabling the audio recording support. Select `PCM/16bit/8Khz` radio button and it's breaking with other option. – Dinash May 14 '11 at 05:41
0

What version of Android is your Emulator running? I've had similar issues with audio in general when I try to run an Emulator with Android 2.2, which had no sound at all on Windows 7 32-bit. Still haven't been able to fix it, but when I swapped to an Android 2.3 emulator, the sound automatically worked. Maybe you could try this...

ThaMe90
  • 4,196
  • 5
  • 39
  • 64