Hello everyone,
I'm trying to record audio with Speex encoder and save it in ogg container.
As wikipedia say Speex using CELP technic to encode so I used kAudioFormatMPEG4CELP for AVFormatIDKey.
But this code throws error
AVAudioRecorder(URL: self.currentRecordFileURL!, settings:[AVFormatIDKey: NSNumber(int: Int32(kAudioFormatMPEG4CELP))])Can anyone help and give me example of code how to record with Speex encoder and save in ogg container?