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

查看:131
本文介绍了如何使用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.

如何做到这一点?

推荐答案

你会发现这里有关于阅读和播放音频的简短教程 here 以及Apple有关Audio Units和更多示例代码的文档的一些链接。

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天全站免登陆