Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法用 AVFoundation 轮询麦克风输入音量?我已经看过像 SpeakHere 这样的 CoreAudio 示例,但我真的只需要当前值。CA是我唯一的选择吗?
您应该检查 SCListener。这是获得麦克风平均或峰值电平的简单方法。
http://github.com/stephencelis/sc_listener