简体   繁体   中英

How to check speechrecognizer offline recognition packages were downloaded?

I need to know how to check speechrecognizer offline recognition packages were downloaded to determine weather to ask the user to download it. Does anyone know how? Thanks.

I believe offline recognition is only available on jellybean devices.

You can check if the device is running a jellybean.

If it is, try recognizing speech without internet connectivity.

If recognition returned results successfully, it means the offline recognition packages are present on the device. If it doesn't check the kind of error returned and ask users to download the packages

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