Skip to content

Commit

Permalink
Update trigger-example.js
Browse files Browse the repository at this point in the history
  • Loading branch information
talsalmona authored Dec 10, 2018
1 parent 2fd76f2 commit bb6c3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/trigger-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const speech = require('@google-cloud/speech')({

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

try{
Sonus.trigger(sonus, 1)
Expand Down Expand Up @@ -39,4 +39,4 @@ try{
}

//Will use index 0 with a hotword of "triggered" and start streaming immedietly
Sonus.trigger(sonus, 0, "some hotword")
Sonus.trigger(sonus, 0, "some hotword")

0 comments on commit bb6c3e9

Please sign in to comment.