henrikl2000
henrikl2000

Reputation: 37

UWP list of all installed languages

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

Answers (1)

Xiaoy312
Xiaoy312

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

Related Questions