Built-in intelligence

Analyze photos, videos, speech, sound, and text using the models built in to the system frameworks.

Overview

Adding intelligent features to your app is relatively easy because many Apple frameworks already use on-device models to analyze different types of content for you. Adopt these frameworks when you want to focus on building your app’s other features, rather than building your own machine learning models to perform the same tasks.

Analyze photo and video content

Computer vision allows for better understanding of the world around you. When you work with photos and videos, you might want to know more about what’s happening in them to create the feature you want in your app. For example, you don’t have to start from zero to Analyzing a selfie and visualizing its content. The Vision and VisionKit frameworks perform a wide variety of tasks that do the heavy lifting for you, and provide more than 25 types of image analysis tasks, like:

To detect and prevent people from viewing unwanted image content in your app, Detecting sensitive content in media and providing intervention options.

Recognize speech and audio content

Speech recognition transforms spoken words into text to help you with things like dictating notes in a note-taking app, or using voice commands to control a smart thermostat. Bringing advanced speech-to-text capabilities to your app into text with very little code, and entirely on device using the Speech framework. Use this framework with audio from prerecorded files or from a live source like a microphone. SpeechAnalyzer the speech you capture to predict the text that matches the audio.

Apps that work with songs or other types of audio can perform acoustic matching using the ShazamKit framework. Acoustic matching helps you identify audio from pieces you capture from the person’s environment. The framework matches your audio against Shazam’s vast music catalog or a custom catalog of your own prerecorded reference audio.

Enhance the accessibility of your apps by adding sound analysis capabilities to your app. Classifying Sounds in an Audio File in real time to identify environmental sounds, like glass breaking or a dog barking. If you’re building a music creation app, use sound analysis to identify the instrument someone is playing. You can even make a custom sound analysis model by training with your own data in the Create ML app.

Analyze and translate language content

Natural Language helps your app understand and process human language and extract meaning from text. Identifying the language in text in text to determine whether the content matches an expected language. Tokenizing natural language text into lexical units — like words or sentences — to ensure correct behavior in multiple script languages. Finding similarities between pieces of text between pieces of text to identify matches between semantically similar content.

Offer in-app translations of your content using the Translation framework. Translating text within your app your app collects and display the results in a Popovers. The framework uses on-device models to support translations between a supportedLanguages. If your app Preparing your app to be the default translation app, make those translations available to the rest of the system using the TranslationUIProvider framework.