How to mute the mic's audio input and recognize only the internal audio of the device by using Auriotouch

醉酒当歌 提交于 2020-01-10 05:40:27

问题


I have used auriotouch codes in my app and when i record the audio, it shows the audio waves. So, while recording the sound, the mic recognizes the audio input and then the waves would act accordingly to whatever the sound the mic receives. So far its fine. But now, when I click on the play button to play the sound I just recorded, the mic's input should be off, so that the waves would act only according to the audio I recorded before and the waves should not act even if I speak while it plays the previously recorded audio.

So, its more or like muting the mic's input to avoid the recognition of external audio and recognizing only the internal audio of the device.

How this can be done?


回答1:


You'll find a short tutorial here on reading and playing audio here as well as some links to Apple's documentation on Audio Units and more sample code.



来源:https://stackoverflow.com/questions/16331327/how-to-mute-the-mics-audio-input-and-recognize-only-the-internal-audio-of-the-d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!