2017-09-05 108 views
-1

ERROR: [0x1a9c3cb40] >avae> AVAudioNode.mm:565: CreateRecordingTap: required condition is false: _recordingTap == nil 2017-09-05 10:53:48.547091+0530 Siri[4223:1598099] * Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: _recordingTap == nil' * First throw call stack: (0x183966fe0 0x1823c8538 0x183966eb4 0x19db28180 0x19db9c530 0x19db9a130 0x1000ca698 0x1000cc8bc 0x1000c94a4 0x100adda50 0x100adda10 0x100ae2b78 0x1839150c8 0x183912ce4 0x183842da4 0x1852ad074 0x189afdc9c 0x1000d587c 0x18285159c) libc++abi.dylib: terminating with uncaught exception of type NSExceptionSFSpeechRecognizer AVAudioNode.mm:565:CreateRecordingTap:需要的條件是假的:_recordingTap ==零

有沒有什麼辦法來解決這個問題。

閱讀所有其他可能的解決方案和蘋果開發者文檔。我已經確保removetap,然後安裝水龍頭仍然面臨這個錯誤。

我在做什麼是我已經在這實現了一些命令。一旦用戶說出任何命令,應用程序將執行該操作。一切都很順利,但有時候應用程序會崩潰並出錯。

是否有任何其他想法可能是什麼問題?

任何幫助真的會感激..

回答

0

檢查audioEngine.inputNode需要刪除時停止錄像。試試這段代碼來停止audioEngine。這是與this

audioEngine.stop() 
recognitionRequest?.endAudio() 
audioEngine.inputNode?.removeTap(onBus: 0)