Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
497 views
in Technique[技术] by (71.8m points)

java - How do you enable a microphone input in the android emulator

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...