Vaani
FirefoxOS Virtual Assistant
Setup
$ git clone git@github.com:mozilla/vaani.git
$ cd vaani
$ npm install
Build
$ npm run build
Flash
Once built you can flash the ./build
directory to your device using WebIDE.
Debug logs
To see the output from the debug
calls open your browser or WebIDE console and execute:
myDebug.enable('*');
Tests
Runs the lint and tests.
$ npm test
Dev mode
In dev mode we watch for changes and automatically re-build the app.
$ npm start
Custom commands
Custom Command is a feature to enable 3rd party apps to register their voice commands. Voice commands will be predefined actions in the short term. We may use Action of schema.org as base and extend it as action list. 3rd party apps should use JSON-LD to state which actions they support. Once the actions detected, Vaani calls the apps to handle that.
Learn how to implement custom commands.
License
Apache License, Version 2.0