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.
如何从麦克风读取声音数据?我不想记录然后访问数据,我希望能够实时访问声音输入?
您可以将来自麦克风的声音(PCM 样本)录制到非常短的内存缓冲区(持续时间短至几毫秒)。这与使用 iOS API 一样接近“实时”。查看 aurioTouch 示例,了解低延迟 AudioUnit RemoteIO 录制代码,以及实时 FFT 分析和显示。
检查此链接:
http://code.google.com/p/ios-coreaudio-example/
从麦克风捕获并通过扬声器播放。