[英]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? 是否可以获取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 预先感谢
SpeechRecognitionEngine.InstalledRecognizers
will provide this information: SpeechRecognitionEngine.InstalledRecognizers
将提供以下信息:
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. 作为@AFriend指出的那样,你也可以使用SupportedGrammarLanguages
或SupportedTopicLanguages
的SpeechRecognizer
为UWP,并方便地DisplayName
,也可以从这些列表中的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.