Post

Replies

Boosts

Views

Activity

Reply to Obscure kAFAssistantErrorDomain Codes and Other Speech Issues
Hello, I have almost the same issues.Errors Specifically, kAFAssistantErrorDomain Code=1107 "(null)". I have no idea what does it means and how should I fix it.Transcription This is not a problem. Look how i handle it: extension TranscribeVC: SFSpeechRecognitionTaskDelegate { func speechRecognitionTask(_ task: SFSpeechRecognitionTask, didFinishRecognition recognitionResult: SFSpeechRecognitionResult) { result.append(contentsOf: recognitionResult.bestTranscription.formattedString) result.append(contentsOf: ".\n") } func speechRecognitionTask(_ task: SFSpeechRecognitionTask, didFinishSuccessfully successfully: Bool) { DispatchQueue.main.async { if successfully { self.textView.text = self.result } } } But I set localRecognitionRequest.shouldReportPartialResults = false It works this way, because full audio file breaks by segments, and then they recognized. So, when you take result of recognition, you get only last segment.Using user data to transcribe I think this feature was included for better transcribing results, and for now It seems like this feature is mandatory.Background recognition Same problem. Still can't find the solution to run recognition task in background.
Jan ’20