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:
- Use a pre-trained Wit app with built-in intents, entities, and traits
- 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.
Before you can start using the Voice SDK, do the following:
- Set up your development environment.
- 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.
- 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.
- 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:
- In Unity, on the menu, go to Meta > Voice SDK > Settings.
- In the Wit Configuration window, under Application Configuration, expand Endpoint Configuration.
- Enter the configuration specifics for your endpoint.
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: