本文介绍了在iOS中使用耳机插孔同时播放和录制音频吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个iPhone应用程序,该应用程序需要同时播放和录制音频(我正在AudioQueues的帮助下进行此操作).我正在使用带有麦克风的耳机插孔引脚进行录制和播放,并且播放的声音是5kHz的wav文件.

I am developing an iPhone application which requires to play and record Audio(I am doing this with help of AudioQueues) simultaneously. I am using headset jack pin with mic for recording and playing and the playing sound is a wav file of 5kHz.

这里的问题是它正在记录通过输出AudioQueues播放的声音以及进入耳机麦克风的声音.但我只需要录制通过头戴式麦克风传来的声音.

The problem here is it's recording the sound that is playing out through output AudioQueues as well as the sound that is coming into headset mic. but I need to record only the sound that is coming through the headset mic.

我找不到问题出在耳机插孔引脚(我已经测试过很多耳机插孔引脚)或任何编程设置,例如AudioSessions.同样,AVAudioPlayer和AVAudioRecorder也是如此.

I am unable to find the problem is with the headset jack pins(I have tested with lot off headset jack pins) or any programming settings like AudioSessions. the same is with the AVAudioPlayer and AVAudioRecorder too.

任何人都可以告诉问题,一些帮助和建议将非常有帮助.谢谢.

Can anyone tell the problem and some help and suggestions would very helpful. Thanks.

推荐答案

在这种情况下,您必须使用外部放大器/混音器来泵送输入声音.单独的麦克风将无法正常工作.如果您增加PC中的录制音量,您将听到更大的嘶嘶声,同时它将继续录制播放声音.因此,唯一的解决方案是使用外部源(放大器/混音器)来提高输入麦克风的音量.

In this case you have to pump the input sound using external amplifier/ mixer. Mic alone will not work properly. If you increase the recording volume in your pc you will hear louder hissing sound and at the same time it will continue to record the playback sound. So the only solution is use external source (amply/mixer) to raise the level of the input mic.

这篇关于在iOS中使用耳机插孔同时播放和录制音频吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 03:42
查看更多