Skip to content

Commit

Permalink
fix: hotword offline (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbarbie authored Jan 31, 2022
1 parent bd53641 commit f563d01
Show file tree
Hide file tree
Showing 4 changed files with 1,955 additions and 102 deletions.
4 changes: 2 additions & 2 deletions hotword/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

const request = require('superagent')
const record = require('node-record-lpcm16')
const { Detector, Models } = require('snowboy')
const { Detector, Models } = require('@bugsounet/snowboy')
const { io } = require('socket.io-client')

process.env.LEON_HOST = process.env.LEON_HOST || 'http://localhost'
Expand Down Expand Up @@ -39,7 +39,7 @@ request.get(`${url}/v1/info`)
})

const detector = new Detector({
resource: `${__dirname}/node_modules/snowboy/resources/common.res`,
resource: `${__dirname}/node_modules/@bugsounet/snowboy/resources/common.res`,
models,
audioGain: 2.0,
applyFrontend: true
Expand Down
Loading

0 comments on commit f563d01

Please sign in to comment.