iOS xcode microphone volume detection?

做~自己de王妃 提交于 2019-12-04 13:38:48

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/6183416/ios-xcode-microphone-volume-detection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!