在Android SDK中访问麦克风麦克风、Android、SDK

2023-09-06 22:28:28 作者:与孤独分手

有没有什么办法来访问微型手机在Android手机相似,在访问的的 android.hardware.Camera 的? 我知道我们可以使用 MediaRecorder 记录从Android应用程序的音频到一个文件中,如本的链接。

Is there any way to access the micro phone in a android phones similar to accessing the android.hardware.Camera?. I know we can use MediaRecorder to record audio from android application into a file as shown in this link .

让我解释什么,我想做的事情。我是从Android程序访问摄像头捕捉到的视频,并使用相机。preVIEW回调函数得到每个捕获的帧。帧进行解码后,我就上传到说流媒体服务器(没有尝试过几乎还没有:))这些帧将只包含图像信息我如何能得到的音频与帧?

Let me explain what I want to do. I'm accessing Camera from android program to capture video and get each captured frame using Camera.Preview callback function. After decoding the frame I'll upload to say a streaming server (haven't tried practically yet :) ) These frames will contain only image information how can I get audio along with frames?

任何一个可以建议我的技术用于实现上述想法?

Can any one suggest me technique for implementing the above idea?

我还是beginer为Android开发,所以我可能听起来愚蠢的:)

I'm still a beginer for android dev so I may sound stupid :)

在此先感谢

推荐答案

是这里是

http://developer.android.com/reference/android/media/ AudioRecord.html