Skip to content

Commit

Permalink
updating example to use sonus as the default model
Browse files Browse the repository at this point in the history
  • Loading branch information
evancohen committed Oct 7, 2016
1 parent 6e82fcd commit cc75113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example.js
Expand Up @@ -6,12 +6,12 @@ const speech = require('@google-cloud/speech')({
keyFilename: './keyfile.json'
})

const hotwords = [{ file: 'resources/snowboy.umdl', hotword: 'snowboy' }]
const hotwords = [{ file: 'resources/sonus.pmdl', hotword: 'sonus' }]
const language = "en-US"
const sonus = Sonus.init({ hotwords, language }, speech)

Sonus.start(sonus)
console.log('Say "snowboy"...')
console.log('Say "' + hotwords[0].hotword + '"...')

sonus.on('hotword', (index, keyword) => console.log("!"))

Expand Down
Binary file added resources/sonus.pmdl
Binary file not shown.

0 comments on commit cc75113

Please sign in to comment.