-3

我正在开发一个将语音转换为文本的应用程序,但是,根据我在论坛上研究的内容,模拟器似乎没有麦克风功能。

我有安卓手机,可以在手机上运行。

但是有什么方法可以从电话中获取语音,并在模拟器上运行应用程序,因为我想在比我的手机更高的 api 上开发我的应用程序。

4

2 回答 2

1

This may be a little involved but you could try writing a socket server that would run on the emulator while creating a socket client that runs on the physical phone. The phone would capture the audio and send it via socket stream to the server which would make it available to your app via an interface. The hidden benefit here would be that your app would bind to an interface rather than a concrete class which would make altering the source of the incoming audio more flexible. The socket server may sound like a lot but it's not too difficult, I've written such a socket server for desktop to device communication and it feels difficult until you realize how to properly read/close your streams.

于 2013-03-04T22:37:53.427 回答
1

这不是一个完美的答案,但是有一个很棒的社区可以将 ROM 刷到你的手机上,并将更新版本的 android 放到手机上。最常见的一种是CyanogenMod,我建议您查看是否有适用于您的特定手机型号的 ROM。

于 2013-02-27T22:03:49.127 回答