Skip to content

3. Registration

Jim Schwoebel edited this page Aug 1, 2018 · 21 revisions

General process

The registration process is straightforward.

  1. User enters their name and email
  2. User is prompted to say "Hey Nala" three times to store wakewords later.
  3. various folders are made (wakewords, actions, queries, and baseline)
  4. Face is recognized and stored in ./baseline folder
  5. Databases are then made (registration.json, settings.json, and actions.json).

Making new directories

First, this function makes three main directories - wakewords, actions, queries, and baseline - all within the data folder. Wakewords are where wakewords are stored if you want to train some of them later (e.g. ‘Hey Nala’). The actions folder is where Nala stores any data generated as a result of responding to user queries. The queries folder is where all the queries that a user makes are stored. Lastly, the baseline folder is where all the user data generated from the registration process is stored, along with any redundant backups of the database in case the master database fails.

Making databases

Everything that Nala does is stored in freeform JSON databases. This makes it much easier to create complex databases and relationships. There are three main databases: registration.json, settings.json, and actions.json. These databases are elaborated upon in the DATABASES section of this wiki.

database images

Clone this wiki locally