The KeenASR SDK for Android includes support for the armeabi-v7a and arm64-v8a architectures.

To install the SDK, follow the steps below:

Prerequisite: Download the KeenASR SDK file and the ASR Bundle

1. Add the KeenASR AAR file to your project

  1. In Android Studio choose File > New > New Module > Import JAR/AAR Package and select the KeenASR.aar file; this creates the KeenASR module in your project.

  2. Add build dependency: Choose File > Project Structure > Dependencies, then click the plus sign (+) at the bottom and choose Module Dependency > KeenASR. Click OK to finish.

2. AndroidManifest.xml file

The SDK ships with the AndroidManifest.xml file with all the relevant permissions it needs. This manifest file will be merged with your app’s manifest file automatically during the build process.

3. Add the ASR Bundle to the app

  1. Unpack the ASR Bundle you download on your local disk.

  2. Choose File > New > Folder > Assets Folder > Finish to create the assets folder.

  3. Copy the ASR Bundle you downloaded (e.g., keenA1m-nnet3chain-en-us) to the app/src/main/assets/ folder. You should end up with a app/src/main/assets/keenA1m-nnet3chain-en-us folder. Android studio will recognize the new folder and you should be able to see the assets/keenA1m-nnet3chain-en-us listed in the left-side navigation tree.