Please refer to this post for code.
How can recording from the Viewcontroller (Main thread) and recording from a model class be different? I tried calling DispatchQueue.main.async {} but the audio data is always 44 bytes no matter how long i recorder which is not correct.
Working Implementation: ViewControllers calls SpeechRecorder.startRecording()
Desired Implementation, ViewController calls Model.tryRecording() which then results in Model calling SpeechRecorder.startRecording()
Any suggestions?
Thanks in advance -Lu