Skip to content

Commit

Permalink
emit error from google speech
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Aumard authored and evancohen committed May 21, 2017
1 parent e1bf052 commit 8d9b160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ jspm_packages

# Keyfile
keyfile.json
/.idea/
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ Sonus.init = (options, recognizer) => {
}
} else if (data.speechEventType === 'END_OF_SINGLE_UTTERANCE' && transcriptEmpty) {
sonus.emit('final-result', "")
} else if (data.error) {
sonus.emit('error', data.error)
}
})

Expand Down

0 comments on commit 8d9b160

Please sign in to comment.