public class KASRBundle
extends java.lang.Object
Constructor and Description |
---|
KASRBundle(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
boolean |
installASRBundle(java.util.ArrayList<java.lang.String> assetList,
java.lang.String targetDir)
Installs ASR bundle with the given name in the app-based directory in the device filesystem.
|
boolean |
isASRBundleInstalled(java.lang.String asrBundleName,
java.lang.String targetDir)
Checks if ASR Bundle is installed in the given directory.
|
public KASRBundle(android.content.Context context)
context
- application context, where ASR Bundle is storedpublic boolean installASRBundle(java.util.ArrayList<java.lang.String> assetList, java.lang.String targetDir) throws java.io.IOException
assetList
- a list of strings that specify relative paths to the assets in ASR BundletargetDir
- path to the directory where the bundle will be installedjava.io.IOException
- if the directory does not exist or any of the bunde files could not be
copied.public boolean isASRBundleInstalled(java.lang.String asrBundleName, java.lang.String targetDir)
asrBundleName
- name of the ASR BundletargetDir
- target directory in which to check if the bundle is installed