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.
我正在制作一个需要录制内部声音的应用程序。
有什么解决办法吗?
没有公开的 iOS API,可让您录制应用程序或设备可以发出的所有内部声音。只能录制某些类型的内部声音,例如应用程序使用音频队列或 RemoteIO 音频单元产生的声音。
对于录制外部声音,Apple 的 SpeakHere 示例代码可能是合适的。
ReplayKit框架从应用程序和麦克风记录屏幕视频和音频。但是 ReplayKit 与 AVPlayer 内容不兼容。它适用于 iOS 9.0 及更高版本。