Building a new app using the model

Perform the following steps to build a complete new Android app that uses the speech_commands_graph.pb model we built in the last section:

  1. Create a new Android app named AudioRecognition by accepting all the defaults as in the previous chapters, then add the compile 'org.tensorflow:tensorflow-android:+' line to the end of the app's build.gradle file's dependencies.
  2. Add <uses-permission android:name="android.permission.RECORD_AUDIO" /> to the app's AndroidManifest.xml file so the app can be allowed to record audio.
  3. Create a new assets folder, then drag and drop the speech_commands_graph.pb and conv_actions_labels.txt files, generated in steps 2 and 3 in the previous section, to the assets folder.
  4. Change ...

Get Intelligent Mobile Projects with TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.