Implementing "User Stopped Speaking" Notification for 'Sfspeechrecognizer'

Implementing user stopped speaking notification for `SFSpeechRecognizer`

It's because you create the timer but you never start it:

self.timer = Timer(timeInterval:2.0, repeats:false)

Instead, say

self.timer = Timer.scheduledTimer( ...

AVSpeechSynthesizer does not speak after using SFSpeechRecognizer

The problem is that when you start speech recognition, you have set your audio session category to Record. You cannot play any audio (including speech synthesis) with an audio session of Record.

SFSpeechRecognizer not working on real device if playing audio from Apple Music

I found the answer, mentioning it here if somebody needs in future.
So I was using SFSpeechAudioBufferRecognitionRequest() instead of SFSpeechURLRecognitionRequest().
If you are selecting media from device, you need to take the url of the selected audio file and pass it to SFSpeechURLRecognitionRequest(url: audioURL). This worked for me.

SFSpeechRecognizer isn't working properly in IOS 13.2

I have been experiencing the same problem with iOS 13.2

Apple just released iOS 13.3, and fixed the bug you are experiencing with SFSpeechRecognizer.

The same bug in macOS Catalina 10.15.1 has been fixed with the just released macOS Catalina 10.15.2



Related Topics



Leave a reply



Submit