iOS xcode 麦克风音量检测?
需要什么框架来检测某人对着麦克风说话的声音有多大...另外,任何人都可以告诉我在文档或谷歌中搜索什么,以便我可以创建一些代码...什么时候通常使用哪行代码通过麦克风检测噪音的音量水平?谢谢!
What frameworks are required to detect how loud someone is talking into a microphone... Also, can anyone tell me what to search for in the documentation or google so I can create some code... What line of code would be commonly used when detecting volume levels of noise through the microphone? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎是以下内容的重复:
实时麦克风声级监控
但是,这个问题是旧的和接受的答案链接到已弃用的库。他们现在建议您改用
AVAudioRecorder
。他们建议 本教程,它似乎就是您正在寻找的内容。This seems to be a duplicate of:
Realtime microphone sound level monitoring
However, that question is old and the accepted answer links to a deprecated library. They now recommend that you instead use
AVAudioRecorder
. They suggest this tutorial and it seems to be what you are looking for.