问题描述
我正在尝试实时从麦克风访问音量数据。我尝试过AVAudioPlayer,但它只监听来自mp3之类的声音,而不是麦克风。我也尝试了The SpeakHere应用程序,但事实证明用所有Objective C ++语法(我是新手)理解起来要困难得多。还有另一个类似于SpeakHere中的类,但仅用Objective C编写吗?
I'm trying to access sound volume data from the microphone in realtime. I've tried AVAudioPlayer but it only monitors sounds from a source like an mp3 and not from a microphone. I've also tried The SpeakHere app but it's proving to be much tougher to understand with all the Objective C++ syntax (i'm a newbie). Is there another class similiar to the one in SpeakHere but written only in Objective C?
推荐答案
已弃用。今天正确答案是使用。 解释了如何使用它。
sc_listener is deprecated. The correct answer today is to use AVAudioRecorder
. This tutorial explains how to use it.
这篇关于实时麦克风声级监控的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!