코드는 this post을 참조하십시오.Viewcontroller 대 A 모델 클래스에서 녹음
Viewcontroller (메인 스레드)에서의 녹음과 모델 클래스에서의 녹음은 어떻게 다릅니 까? DispatchQueue.main.async {}를 호출 해 보았습니다. 그러나 오디오 데이터는 올바르지 않은 레코더의 길이에 관계없이 항상 44 바이트입니다.
작업을 구현 : ViewControllers은의 ViewController 다음 SpeechRecorder.startRecording를 호출 모델() 결과 Model.tryRecording() 를 호출 ()
원하는 구현, SpeechRecorder.startRecording를 호출
제안 사항이 있으십니까? 발견 한 오류 사전 -lu