我如何同时记录从麦克风阵列的每个麦克风音频到Android中一个单独的缓冲? [英] How do I simultaneously record audio from every mic on a microphone array into a separate buffer in Android?

查看:559
本文介绍了我如何同时记录从麦克风阵列的每个麦克风音频到Android中一个单独的缓冲?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多平板电脑和一些智能手机使用的麦克风的东西像噪音消除阵列。例如摩托罗拉Droid X采用三麦克风阵列,甚至允许您设置音频场景。一个例子是这里讨论。

Many tablets and some smart phones use an array of microphone for things like noise cancellation. For example Motorola Droid X uses three microphone arrays and even allows you to set "audio scenes". An example is discussed here.

我希望能够从所有可用的平板电脑/手机同时麦克风录制。我发现,使用AudioSource我们可以选择麦克风(我不知道哪个麦克风,这是特别,但它可能是一个面向用户)或麦克风,这是在相同的方向,摄像头,也没有找到访问反正麦克风阵列中的所有其它话筒。任何帮助指向我的方向是正确的调查,这将是巨大的。在此先感谢您的时间。

I want to be able to record from all the microphones that are available on the tablet/phone at the same time. I found that using AudioSource we can choose the mic (I do not know which mic this is specifically but it might be the one facing the user) or the mic that is in same orientation as the video camera, but could not find anyway of accessing all the other mic in the mic array. Any help that points me in the right direction to investigate this will be great. Thanks in advance for your time.

推荐答案

它的好像你已经证实没有用于访问数组中的特定话筒一个标准的Andr​​oid API。我找不到任何东西。

It's seems like you've verified that there isn't a standard Android API for accessing specific mics in an array. I couldn't find anything either.

由于是与自定义添加到了Android系统的情况下,它是由制造商来释放开发人员API。摩托罗拉 这样做过。我接过来一看,在所有的,他们列出的,好像他们根本不将其暴露。显然,他们有code的地方,可以做到这一点(以下简称音情景使用它)。

As is the case with custom additions to the Android system, it's up to the manufacturer to release developer APIs. Motorola has done this before. I took a look at all of the ones they have listed and it seems they simply don't expose it. Obviously, they have code somewhere which can do it (the "audio scenes" uses it).

因此​​,快速回答:你的运气了

So the quick answer: you're out of luck.

在更复杂的答案:你可以去周围的源$ C ​​$下对Droid X洞穴探险,因为它的发布为开源。如果你能真正找到它,了解你使用它可以在任何时候改变一个未公开的API。另外,你必须为你做这个要支持所有的设备。

The more involved answer: you can go spelunking around the source code for the Droid X because it's released as open source. If you can actually find it, understand that you're using an undocumented API which could be changed at any time. Plus, you'll have to do this for every device you want to support.

这篇关于我如何同时记录从麦克风阵列的每个麦克风音频到Android中一个单独的缓冲?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆