iphone - How can i read the microphone input?

跟風遠走 提交于 2019-12-06 07:05:40

问题


How can i read the sound data from the microphone? I don't want to record and then access the data, i want to be able to access the sound input live?


回答1:


You can record sound (PCM samples) from the microphone to very short memory buffers (as short as a few milliseconds in duration). That's as close to "live" as there is using iOS API's. Look at the aurioTouch example for low latency AudioUnit RemoteIO recording code, with live FFT analysis and display.




回答2:


Check this link:

http://code.google.com/p/ios-coreaudio-example/

Captures from Microphone & plays through speaker.



来源:https://stackoverflow.com/questions/3593247/iphone-how-can-i-read-the-microphone-input

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