在Android上,无需电缆即可将扬声器输出转换为麦克风输入? [英] Speaker output to mic input without cable on Android?

查看:871
本文介绍了在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:

  1. 使用QJackCtl启动Jack.这并不像听起来那么容易:
  1. Start Jack with QJackCtl. This is not as easy as it sounds:
  1. 启动QJackCtl.
  2. 单击设置..."按钮.
  3. 从驱动程序:"下拉菜单中选择"alsa".
  4. 从输入设备"和输出设备"下拉列表中选择要使用的声卡.请注意,如果您有能力相对较强的声卡,则可能有许多可能的设备(我的Audigy 2 ZS有四个).选择正确的方法超出了本教程的范围.
  5. 检查右下角的延迟.意识到Jack本身将需要一些时间来处理声音.这会为您提供有关的信息(很抱歉,但是我确切地不知道这意味着什么).运行Jack通常是在获得超低延迟和避免"xruns"之间进行权衡,而xruns是Jack在处理一段音频时必须放弃的地方. Xruns经常会发出喀哒"声.
  6. 单击确定".

  • 单击连接"按钮.
  • 这将打开连接"面板.基本上,这里是您可以将不同的Jack应用程序彼此插入以便它们彼此处理音频的地方.
  • 选择输入(左侧的系统")和输出(右侧的系统"),然后单击连接".在这种情况下,您可能需要查看一侧或两侧系统"下列出的各种内容,以查找从麦克风/输出到扬声器的实际捕获内容.同样,这超出了本教程的范围. Google是您的朋友,反复试验也是您的朋友.
  • 将麦克风放在扬声器附近时,请享受反馈的声音.
  • Click the "Connect" button.
  • This opens the "Connections" panel. This is basically a place that you can plug different Jack applications into one another so they process audio from each other.
  • Choose the input ("system" on the left) and the output ("system" on the right) and click "Connect". You may need to look through the various things listed under "system" on one or both sides to find the thing that's actually capturing from your mic/outputting to your speakers, in which case . Again, this is beyond the scope of this tutorial; Google is your friend, as is trial and error.
  • Enjoy the noise of feedback when you bring the microphone near the speakers.
  • 就将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屋!

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