简体   繁体   English

Android:同时使用麦克风和耳机

[英]Android: Using Microphone and Headphones Simultaneously

I have an application that needs to use a high-quality microphone and headphones simultaneously.我有一个需要同时使用高质量麦克风和耳机的应用程序。 On my phone, there is only one input for an audio device.在我的手机上,音频设备只有一个输入。 How can I connect to and handle in/out data from each?如何连接并处理来自每个的输入/输出数据?

edit: I dont want to capture two input sources at once.编辑:我不想一次捕获两个输入源。 I want to record from a microphone, use it to modify audio which i have already recorded, then output the result to a headphone in real time.我想从麦克风录制,用它来修改我已经录制的音频,然后 output 将结果实时到耳机。 I know this is possible, however I dont know how to connect and differentiate between two devices connected to the audio jack via a splitter.我知道这是可能的,但是我不知道如何连接和区分通过分离器连接到音频插孔的两个设备。

Most (probably all) Android devices with a 3.5mm port support a TRRS connector( https://en.m.wikipedia.org/wiki/Phone_connector_(audio)#TRRS_standards )大多数(可能全部)具有 3.5 毫米端口的 Android 设备支持 TRRS 连接器( https://en.m.wikipedia.org/wiki/Phone_connector_(audio)#TRRS_standards

So there is a different hardware channel for the microphone and the headphones, and it's not possible to accidentally use the wrong one in software or for that matter manually select what to use the hardware connections for, it's predefined.所以麦克风和耳机有不同的硬件通道,不可能在软件中意外使用错误的通道,或者手动使用硬件连接的用途,这是预定义的。

But so the point is that you need the right splitter exactly for this, not just a normal audio-splitter but one that specifically splits the input/microphone channel from the output/heaphone channel.但关键是您需要正确的分配器,而不仅仅是一个普通的音频分配器,而是一个专门将输入/麦克风通道与输出/耳机通道分开的分配器。

If you use the search term "audio and microphone 3.5mm splitter android", then you should find the correct splitter hardware shopping recommendations:如果您使用搜索词“音频和麦克风 3.5mm 分离器 android”,那么您应该找到正确的分离器硬件购物建议:

https://www.google.com/search?q=audio+and+microphone+3.5mm+splitter+android&tbm=shop https://www.google.com/search?q=audio+and+microphone+3.5mm+splitter+android&tbm=shop

Here is an example picture:这是一个示例图片:

音频麦克风分配器 3.5mm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM