voice
voice copied to clipboard
fix (iOS): unsupported locale
trafficstars
Hello, I found this repository useful for one of my client project. In the app I’m developing (iOS), user can swipe between languages (let’s say English [en-IN] - Gujarati [gu-IN]) and start voice recognition. Currently SFSpeechRecognizer supports limited locale. initWithLocale would return nil; when, we try to initialise speech recogniser object with such an unsupported locale.
https://developer.apple.com/documentation/speech/sfspeechrecognizer/1649877-initwithlocale#return_value
Kindly review and provide feedback.