简体   繁体   中英

How to get a list of languages supported by the Speech Recognition API on Android?

I found this on stackoverflow: How to set the language in speech recognition on android? . The top answer explains how to do so programmatically by broadcasting an intent with the list of languages to a new activity and you can store that list in a Bundle object. But how do you retrieve the list of languages from the Bundle object?

check this post. As it mentioned,

your app can query for the list of supported languages by sending a RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS ordered broadcast

如果您在Android for Google上使用语音识别API,请选中此项

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM