在Android上,无需电缆即可将扬声器输出转换为麦克风输入? [英] Speaker output to mic input without cable on Android?
问题描述
我想在不使用任何物理电缆的情况下将扬声器输出连接到Android手机上的麦克风输入.这样的路由应该对所有应用程序都是透明的.借助此功能,我可以设计出许多有趣的应用程序,例如,测量voip呼叫的往返延迟,自动回复来电等.
I want to connect speaker output to mic input on Android phone without using any physical cable. Such routing should be transparent to all apps. With this function I can design a bunch of interesting apps, e.g., measuring round-trip delay of a voip call, automatically replying to an incoming call etc.
一些类似的问题可以在这里找到:
Some similar questions can be found here:
似乎目前在Android上还没有解决方案,但是在Linux上运行的工具JACK是壁橱之一.有人可以为我提供一些脚本或代码来创建一个在Linux上实现此功能的JACK客户端(扬声器->麦克风)吗?要将JACK服务器和客户端移植到Android上会有多困难?
It seems that there is no solution on Android right now, but the tool JACK running on Linux is the closet one. Can someone provide me some scripts or codes to create a JACK client that realizes this (speaker -> mic) on Linux? And how hard would it be to port JACK server and client to Android?
谢谢!
推荐答案
在Linux上使用Jack将麦克风连接到扬声器:
Getting Jack on Linux to connect the mic to the speakers:
- 使用QJackCtl启动Jack.这并不像听起来那么容易:
- Start Jack with QJackCtl. This is not as easy as it sounds:
- 启动QJackCtl.
- 单击设置..."按钮.
- 从驱动程序:"下拉菜单中选择"alsa".
- 从输入设备"和输出设备"下拉列表中选择要使用的声卡.请注意,如果您有能力相对较强的声卡,则可能有许多可能的设备(我的Audigy 2 ZS有四个).选择正确的方法超出了本教程的范围.
- 检查右下角的延迟.意识到Jack本身将需要一些时间来处理声音.这会为您提供有关的信息(很抱歉,但是我确切地不知道这意味着什么).运行Jack通常是在获得超低延迟和避免"xruns"之间进行权衡,而xruns是Jack在处理一段音频时必须放弃的地方. Xruns经常会发出喀哒"声.
- 单击确定".
就将Jack移植到Android而言,您可以看看此,这基本上表明Android无法满足Jack的低延迟要求(这也可能会导致您在尝试进行延迟测量时遇到问题).您还可以查看此和
As far as porting Jack to Android goes, you might take a look at this, which basically seems to indicate that Android isn't able to handle the low-latency requirements of Jack (which might also cause you problems in trying to do latency measurements). You could also look at this and this, which might offer an alternative way to do what you're trying to do (I'm not sure where it stands regarding the latency issues, also, I've never used either PD or libpd myself).
这篇关于在Android上,无需电缆即可将扬声器输出转换为麦克风输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!