如何获取 sampleBuffer 并将其转换为音频数据?
这是我用来获取sampleBuffer的功能
func captureOutput(_ : AVCaptureOutput, didOutput sampleBuffer: CMSampleBuffer, from connection: AVCaptureConnection) {
// Do something with sampleBuffer to get it into audio Data
// Make it come out in a data Object.
}