How to convert CMSampleBuffer to Data in Swift?
问题 I need to convert CMSampleBuffer to Data format. I am using one Third party framework for audio related task. That framework gives me the streaming (i.e Real Time audio) audio in CMSampleBuffer object. Like this: func didAudioStreaming(audioSample: CMSampleBuffer!) { //Here I need to conver this to Data format. //Because I am using GRPC framework for Audio Recognization, } Please provide me the steps to convert the CMSampleBuffer to Data . FYI let formatDesc:CMFormatDescription? =