Reputation: 37
Is it possible to get a list of all the installed languages with voice input capabilities (speech recognition) in Windows UWP? And how?
I have tried the following, but it gives all installed languages even without voice input capabilities.
For Each lang In UserProfile.GlobalizationPreferences.Languages
cboSpeechRecoLang.Items.Add(lang)
Next
Thank in advance
Upvotes: 0
Views: 353
Reputation: 14477
SpeechRecognitionEngine.InstalledRecognizers
will provide this information:
For Each culture In SpeechRecognitionEngine.InstalledRecognizers()
cboSpeechRecoLang.Items.Add(culture.DisplayName)
Next
As @AFriend pointed out, you can also use SupportedGrammarLanguages
or SupportedTopicLanguages
of SpeechRecognizer
for UWP, and conveniently DisplayName
is also available from these list items.
Upvotes: 3