To install KeenASR framework in your Objective C project follow these steps:

1. Download the Latest Version of the Framework

Download trial framework

Trial version of the framework will force the app to exit (“crash”) after 10min of use. You can always restart the app and run it again for up to 10 minutes.

Download librispeechQT-nnet2-en-us ASR Bundle

Unzip all the archives you downloaded.

We can provide ASR Bundles that perform better in noisy environments and/or have smaller memory footprint and CPU utilization. Contact us to inquire about the details.

2. Add Framework to the Project

Directions from the Apple’s iOS Developer Library.

  • In the project navigator, select the project or group within a project to which you want to add the framework

  • Choose File > Add Files to “YOUR_APP_NAME”

  • In the file dialog, click on Options button in the bottom left and make sure “Copy items if needed” is checked

  • Select the framework directory (KeenASR.framework/), and click Add

You can also add a framework to a project by dragging the framework bundle from a Finder window into the project in the project navigator.

3. Add ASR Bundle to the Project

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

  • Choose File > Add Files to “YOUR_APP_NAME”

  • Click on Options button in the bottom left and make sure “Create folder references” is checked.

  • Select the ASR bundle directory (e.g. librispeechQT-nnet2-en-us), and click Add

4. Update Project Build Configuration Settings

  • Disable bitcode compilation. Under project Build Settings, search for “Enable Bitcode” and set to NO

  • Add libc++.tbd library. Under Targets, choose your target, select Build Phases tab, open Link Binary With Libraries, click on +, select libc++.tbd, click Add

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

  • Add Accelerate framework. Under Targets, choose your target, select Build Phases tab, open Link Binary With Libraries, click on +, select Accelerate.framework, click Add

5. Update Privacy Settings for Microphone Access

As of iOS 10, Apple requires all apps that access microphone to provide a description with the reason your app needs to access the microphone, by adding a key 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). More details.

To add this key, open Info.plist file in your project, add the NSMicrophoneUsageDescription key, and specify your description as the string value. For example, “Speech recognition feature in this app requires access to the microphone”.