To install the KeenASR framework in your Objective C project perform the following steps:

1. Download the Latest Version of the Framework

  1. Download the trial framework and ASR Bundle for iOS.

  2. Unzip all the downloaded archives.

2. Add the Framework to your Project

  1. Follow the Directions provided in the Apple’s iOS Developer Library.

  2. In the project navigator, select the project or group within the project to which you want to add the framework.

  3. Select the relevant target listed under TARGET label.

  4. Scroll down to Embedded Binaries section, click on the plus sign (+) to add the KeenASR.framework.

3. Add the ASR Bundle to your Project

  1. In the project navigator, select the project or group within a project to which you want to add the ASR Bundle.

  2. Choose File > Add Files to “YOUR_APP_NAME”.

  3. Click Options in the lower left and make sure Create folder references is checked.

  4. Select the ASR bundle directory (for example, keenB2mQT-nnet3chain-en-us) and click Add.

4. Update Project Build Configuration Settings

  1. As of version 1.5, the SDK is compiled with bitcode compilation enabled. For earlier versions you will need to disable bitcode compilation. To disable Bitcode Compilation under your project Build Settings, search for “Enable Bitcode” and set the parameter to NO.

  2. Add the libc++.tbd library. Under Targets, choose your target, select the Build Phases tab, open Link Binary With Libraries, click the Plus Sign (+) and add the libc++.tbd library.

  3. Under Targets, choose your target, select Build Settings tab, search for “c++”. Make sure that C++ Language Dialect is set to C++11, and the C++ Standard Library is set to libc++.

  4. Add the Accelerate framework. Under Targets, choose your target, select the Build Phases tab, open the Link Binary With Libraries, click the Plus Sign (+) and add the Accelerate.framework.

5. Update the Privacy Settings for Microphone Access

As of iOS 10, Apple requires all apps that access the microphone to provide the user with a reason why your app needs to access the microphone. To support this requirement, a key must be placed in the Info.plist file. If this key is not specified the app will crash as soon as it tries to access the microphone (in this case, on initialization of the framework). Review these pages for more information.

To add the microphone access key:

  1. Open the Info.plist file in your project.

  2. Add the NSMicrophoneUsageDescription key.

  3. Specify your description as the string value, for example, “The speech recognition feature in this app requires access to the microphone”.