/**
 * Created by betterclever on 6/28/17.
 */ import { Models } from "snowboy" ; import { MODELS } from "./model-dictionary" ; export class SusiModels extends Models { constructor ( wakeWord ) { super ( ) ; let model = MODELS [ wakeWord ] ; if ( model === undefined ) { console . error ( `model ${ wakeWord } is not found, so using Susi instead` ) ; model = MODELS . Susi ; } this . add ( { file : `${ process . env . CWD }/resources/models/${ model . file }` , sensitivity : "0.5" , hotwords : model . name , } ) ; } }