本文介绍了如何通过音频插孔检测输入数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有些设备耳机端口(也许所有的人?这里的任何引用将是一件好事)有3个信道,立体声音响和麦克风。所以,我想知道是否有可能发现类似在这些设备上此踏板

I know that some devices headphone ports (maybe all of them? any reference here would be good) have 3 channels, for stereo sound and microphone. So I was wondering if it's possible to detect something like this pedal on these devices.

如果有可能,使用录音机就足够了?我学习的可能性,一个应用程序在这里,这听起来有希望如果可能的话。

If it's possible, using the audio recorder would be enough? I'm studying possibilities for an app here, and this sounds promising if possible.

感谢

修改

我在寻找更多关于这一点,我在想,如果踏板也有同样的效果,这些耳机的按钮。 It's致命容易忽略其影响,我创建了一个简单的应用程序,并它,现在我在等待我的踏板尝试。它有什么想法?

I was searching more about it and I was wondering if the pedal would have the same effect as those headsets with buttons. It's deadly easy to override their effects, I created a simple app that does it and now I'm waiting for my pedal to try. Any thoughts about it ?

更新

我刚刚试了一下踏板并不起作用。虽然我们设法用踏板暂停音乐应用程序。该装置虽然运行氰。该录音笔还没有发现的关键preSS什么。需要关于如何检测它建议:。)

I just tried it in the pedal and it doesn't work. Although we managed to use the pedal to pause a music app. The device was running Cyanogen though. The voice recorder also didn't detect anything on the key press. Need suggestions on how to detect it :).

更新

作为赏金即将到期,一个小的更新。通过@ Nick.T提供的最后一个环节得到了一些有用的信息,但我仍然不能够创造一个样品检测踏板。于是我做了一个小变化对标题问题,在这个方向的任何指导将非常AP preciated!

AS the bounty is about to expire, a minor update. The last link provided by @Nick.T got some helpful info but I'm still not able to create a sample to detect the pedal. So I made a small change on the title question, and any guidance on that direction would be very much appreciated!

推荐答案

目前尚不清楚这是否会工作,而不必在我手中的实际硬件,但是...不要堵塞插孔完全插入插座。插孔的尖端应然后连接到该引脚图2,左侧音频输出,: http://pinoutsguide.com/CellularPhones-PW/samsung_galaxy_headset_pinout.shtml 和环应连接到引脚3,麦克风如果按插座一路,在插孔短路麦克风输入接地引脚,你不会发现任何东西 - 张图片的呈现怎样的连接将交配。

It's not clear if this will work without having the actual hardware in my hands, but... Don't plug the jack all the way into the socket. The tip of the jack should then connect to pin 2, left audio out, of this diagram:http://pinoutsguide.com/CellularPhones-P-W/samsung_galaxy_headset_pinout.shtmland the ring should connect to pin 3, microphone in. If you push the jack all the way in, the ground pin on the jack shorts out the microphone input and you won't detect anything - pictures at https://en.wikipedia.org/wiki/File:Photo-audiojacks.jpg show how the connections will mate.

播放一些音频输出的左声道,在麦克风通道记录它,并测量幅度。这可能 - 如果这一切都连接好正确的 - 告诉你的踏板位置。如果电位器的远端连接到插孔的环,这是行不通的。

Play some audio out the Left channel, record it on the mic channel, and measure the amplitude. That may - if it's all wired up right - tell you the pedal position. If the far end of the potentiometer is connected to the ring of the jack, that's not going to work.

这一切听起来相当希思·罗宾逊。你可以买一个直列3针插座插孔和一个4针插头插座插头和电线,两人联手得到任何引脚需要。没有电子;只是连接器及线材位!或者用像这样的电缆:<一href="http://www.ebay.co.uk/itm/1mt-3-5mm-4-Pin-Jack-Male-Plug-4-Pole-Jack-female-Socket-Extension-Lead-Cable-/251172651017?pt=UK_Computing_Sound_Vision_Audio_Cables_Adapters&hash=item3a7b0e8009&_uhb=1" rel="nofollow">http://www.ebay.co.uk/itm/1mt-3-5mm-4-Pin-Jack-Male-Plug-4-Pole-Jack-female-Socket-Extension-Lead-Cable-/251172651017?pt=UK_Computing_Sound_Vision_Audio_Cables_Adapters&hash=item3a7b0e8009&_uhb=1和一把锋利的刀和一些stickytape。

That all sounds rather Heath Robinson. You could buy an inline 3-pin female jack socket and a 4-pin male jack plug and wire the two together to get whatever pinout you need. No electronics; just connectors and bits of wire! Or use a cable like this one:http://www.ebay.co.uk/itm/1mt-3-5mm-4-Pin-Jack-Male-Plug-4-Pole-Jack-female-Socket-Extension-Lead-Cable-/251172651017?pt=UK_Computing_Sound_Vision_Audio_Cables_Adapters&hash=item3a7b0e8009&_uhb=1and a sharp knife and some stickytape.

另一个问题会来,如果手机拒绝将音频发送到插孔时,插孔没有插充分家里 - 有插座,其检测机械的额外接触。但它会工作,如果你取得了3针到4针的适配器。

The other problem would come if the phone refuses to send audio to the jack when the jack isn't plugged fully home - there's an extra contact in the socket that detects that mechanically. But it would work if you made 3-pin to 4-pin adapter.

或者,只是削减了3.5毫米插孔关闭(崭新的)前pression踏板。与4针连接器断开那些破手机耳机你已经躺在附近的一个更换。

Or, just cut the 3.5mm jack off your (shiny new) expression pedal. Replace it with the 4-pin connector off one of those broken phone headsets you have lying around.

这篇关于如何通过音频插孔检测输入数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 16:53
查看更多