Open lordhari opened 6 years ago
Having the same issue. It seems like SpeechRecognitionServiceFactory creates a singleton I think?
It's not a singleton. Factory returns a new object but with old configurations.. So can't update the language. Also I think the created objects are retained by something!
I'm having the same issue.
App started recognition using
_micClient = [SpeechRecognitionServiceFactory createMicrophoneClient:SpeechRecognitionMode_ShortPhrase withLanguage:locale withKey:API_KEY withProtocol:(self)];
Everything works as intended.
Second time using the same with another locale, recognition is only in the first locale's alphabet.
Eg: App launched and starts recognition with "hi-IN"
Then initialises new microphone client with "en-US".
Now when recognition starts:
Couldn't find the locale in the log the second time and note that the partial responses are still in "hi-IN"