Develop
Develop
Select your platform

Integrating Voice SDK

Updated: Aug 12, 2024
When enabling voice experiences for your app using the Voice SDK, there are two ways to do the integration:
  1. Use a pre-trained Wit app with built-in intents, entities, and traits
  2. Create a custom Wit app using custom and built-in intents entities, and traits
While these options have different technical requirements, they share the same prerequisites.

Set up Voice SDK

Before you can start using the Voice SDK, do the following:
  1. Complete the Set up Unity for VR development guide.
  2. Download the Voice SDK either as an individual SDK or as part of the Meta XR All-in-One SDK. There are multiple ways to import the packages into your Unity project. See Import Packages for more details.
  3. On the Edit menu, go to Project Settings > Player, expand the Other Settings section, and then do the following:
    • Under Configuration, in the Scripting Backend list, select IL2CPP to switch the build to 64-bit IL2CPP.
    "IL2CPP in the Scripting Backend list"
  • For Android apps, on the menu, under Configuration, in the Internet Access list, select Require to prevent a NameResolutionFailure error from being returned.

Redirect the Wit endpoint

If it’s necessary to redirect your client’s Wit request to your servers for initial processing before it’s forwarded to Wit, you can reconfigure the endpoint for the new location. You could do this, for instance, if you want to redirect a speech request to a test or development server.
To redirect the Wit request endpoint:
  1. In Unity, on the menu, go to Meta > Voice SDK > Settings.
  2. In the Wit Configuration window, under Application Configuration, expand Endpoint Configuration.
  3. Enter the configuration specifics for your endpoint.
"Screengrab of the Endpoint Configuration window"

Version your app

You can use Wit.ai to manage your app versioning so you can work on the next version while still having a stable production version.
Wit allows you to control your app versions through the API or by using the versioning panel on the settings page of the app. Versions are represented by tags on a timeline and you can target a specific version by defining a tag in the API parameter.
For more information, see the Recipe section of the Wit documentation.


This section contains the following topics:

Did you find this page helpful?