如何使用 Auriotouch 将麦克风的音频输入静音并仅识别设备的内部音频 [英] How to mute the mic's audio input and recognize only the internal audio of the device by using Auriotouch

查看:26
本文介绍了如何使用 Auriotouch 将麦克风的音频输入静音并仅识别设备的内部音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用中使用了 auriotouch 代码,当我录制音频时,它会显示音频波.因此,在录制声音时,麦克风会识别音频输入,然后波会根据麦克风接收到的任何声音做出相应的动作.到目前为止还好.但是现在,当我点击播放按钮播放我刚刚录制的声音时,麦克风的输入应该关闭,这样波形只会根据我之前录制的音频起作用,即使我说话,波形也不应该起作用它会播放之前录制的音频.

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.

如何做到这一点?

推荐答案

您可以在此处找到有关阅读和播放音频的简短教程 此处 以及指向 Apple 关于音频单元的文档和更多示例代码的一些链接.

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.

这篇关于如何使用 Auriotouch 将麦克风的音频输入静音并仅识别设备的内部音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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