API Overview
Namespace
Namespace
The Magic Leap 2 Voice Input framework supports App Specific Voice Intents which are custom voice intents you can develop to use within your app. You can develop a full set of voice intents to incorporate in your applications with the assistance of the Voice Intent Development ToolKit (VIDTK).
Introduction
This section provides details on how developers can create and register voice commands dynamically at runtime. This feature can be helpful when loading content dynamically.
This section provides details on how developers can create voice commands at runtime. This feature can be helpful when loading content dynamically.
This section includes code examples for developers to reference when implementing voice input in their applications.
This section provides details on how developers can start and stop tracking voice intents inside their applications.
The Magic Leap 2 offers Speech Commands, which allow applications to perform custom and system actions. When enabled, users can use their voice to interact with applications on the device. The can also be used to perform system tasks, such as changing the volume of audio, exiting an application or taking a camera capture, in place of using other input methods. Notably, these speech commands work offline which means they can be used even when there is no network connection.
The Voice Intent API will only register voice commands if Voice Input is enabled inside the Magic Leap 2's System Settings (Settings > Magic Leap Inputs > Voice). This section demonstrates how to check if a user has enabled Voice Input.
Overview
Magic Leap recommends using the Voice Intent Development Toolkit (VIDTK) to create and deploy custom voice commands. The toolkit provides validation and guidence within the toolkit UI that are not available in the Unity Editor. For more information, see Voice Commands.
A Slot is a placeholder string for a set of potential values. The utterance will use one of the values and the developer can have different logic based on which value was spoken. To indicate use of a slot, put the slot name within { } for the command.