Skip to content

Integrate a voice user interface with WebXR using Wit.ai, Web-Speech-API, and A-Frame.

Notifications You must be signed in to change notification settings

MageshSundarG/webxr-wit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Wit.ai WebXR Voice

Overview

This demo will show you how to integrate Wit.ai (NLU service) and A-Frame (WebXR library) to build a voice enabled VR application (that can be adapted for AR as well). The app will allow users to ask our sudo AI voice assistant built with the Web-Speech-API to add 3D objects to our VR environment with voice commands, such as “Hey Jarvis, drop a box”.

Prerequisites

Launch the Demo Setup

  • Create a new Wit.ai app
  • Unzip and import src/webxrwitvoice.zip to your Wit.ai app
  • Update TOKEN in src/voice.js to the token obtained from your app’s Settings page
  • Open the src/index.html file in your browser
  • Allow microphone access

Supported Voice Commands

Below are some voice commands that are supported, but you can also go to your Wit.ai app and select Utterances to view and extend them:

  • “drop a box”
  • “add a cylinder”
  • “drop a sphere”
  • “I summon a box”
  • “can you add a cylinder”
  • “please add a cylinder”

References

About

Integrate a voice user interface with WebXR using Wit.ai, Web-Speech-API, and A-Frame.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published