diff --git a/docs/tutorials/on-device-training/ios-app.md b/docs/tutorials/on-device-training/ios-app.md index d50e354fb8b51..0f9a634a5aeb3 100644 --- a/docs/tutorials/on-device-training/ios-app.md +++ b/docs/tutorials/on-device-training/ios-app.md @@ -948,12 +948,34 @@ The complete implementation of the `ContentView` can be found [here](https://git ## Running the iOS application -Now, we are ready to run the application. You can run the application on the simulator or on the device. To run the application on the simulator, you can select the simulator from the list of available simulators and click on the run button. +Now, we are ready to run the application. You can run the application on the simulator or on the device. You can find more information about running the application on the simulator and device [here](https://developer.apple.com/documentation/xcode/devices-and-simulator). - - To run the application on the device, you will need to create a provisioning profile and sign the application with the profile. You can find more information about running the application on the device [here](https://developer.apple.com/documentation/xcode/devices-and-simulator). +a. Now, When you run the application, you should see the following screen: + + + +b. Next, click on the `Train` button to navigate to the `TrainingView`. The `TrainingView` will prompt you to record your voice. You will need to record your voice `kNumRecordings` times. + + + +c. Once all the recordings are complete, the application will train the model on the given data. You will see the progress bar indicating the progress of the training. + + + + +d. Once the training is complete, you will see the following screen: + + + + +e. Now, click on the `Infer` button to navigate to the `InferView`. The `InferView` will prompt you to record your voice. Once the recording is complete, it will perform inference with the trained model and display the result of the inference. + + + + +That's it! Hopefully, it identified your voice correctly. ## Conclusion Congratulations! You have successfully built an iOS application that can train a simple audio classification model using on-device training techniques. You can now use the application to train a model on your own voice and perform inference with the trained model. The application is also available on GitHub at [`onnxruntime-training-examples`](https://github.com/microsoft/onnxruntime-training-examples/tree/master/on_device_training/mobile/ios) diff --git a/images/iOS_speaker_identification_screenshot_4.jpg b/images/iOS_speaker_identification_screenshot_4.jpg new file mode 100644 index 0000000000000..7b4b0e04ddeb7 Binary files /dev/null and b/images/iOS_speaker_identification_screenshot_4.jpg differ diff --git a/images/iOS_speaker_identification_screenshot_5.jpg b/images/iOS_speaker_identification_screenshot_5.jpg new file mode 100644 index 0000000000000..3bf21720cd9ef Binary files /dev/null and b/images/iOS_speaker_identification_screenshot_5.jpg differ diff --git a/images/iOS_speaker_identification_screenshot_6.jpg b/images/iOS_speaker_identification_screenshot_6.jpg new file mode 100644 index 0000000000000..8605f44be5ede Binary files /dev/null and b/images/iOS_speaker_identification_screenshot_6.jpg differ diff --git a/images/iOS_speaker_identification_screenshot_7.jpg b/images/iOS_speaker_identification_screenshot_7.jpg new file mode 100644 index 0000000000000..f208af17bc3eb Binary files /dev/null and b/images/iOS_speaker_identification_screenshot_7.jpg differ