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
A Codable Structure Contains a Protocol Property
How to Load the Photo Library into Uicollectionview? Swift
Iterating Over an Nsorderedset
Gmsplace Returns Invalid Coordinate (-180, -180), But Name and Place Id Are Correct
How to Retrieve a Value from Dictionary in Swift 3
Swiftui - Pass Data to Different Views
Swift: How to Hold Any Possible Instance of a Generic Type in a Variable
How to Create a Nsmutabledictionary in Swift
Swift: Reusable Uiview in Storyboard and Sizing Constraints
How to Blur the Background in a Swiftui MACos Application
Identify Mkpointannotation in Mapview
Draw Mkpointannotation with Title in Mksnapshot Image
Protocol Extension Initializer Forcing to Call Self.Init
Add Datepicker in Uiactionsheet Using Swift
App Crashes from IPA File But Runs Fine from Xcode