Storing microphone input as Byte Array in Swift

Hi there,


I am wanting to access the iPhone device’s microphone and record audio as FLAC and save it as a byte array, rather than save it as a file. Unfortunately, all the tutorials etc. I have followed have used AVAudioRecorder which seems to require a URL. Could someone please give me some code to record audio and save it as a byte array? I know it will require AVFoundation, but I am still fresh out of Windows/Visual Studio (bought first Mac a few days ago) and I am very unfamiliar with Swift so I apologise for my ignorance…



Powered by WPeMatico


You may also like...

Comments are closed.