voice icon indicating copy to clipboard operation
voice copied to clipboard

fix (iOS): unsupported locale

Open PRA1995SAG opened this issue 2 years ago • 0 comments
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.

PRA1995SAG avatar Sep 25 '23 09:09 PRA1995SAG