Skip to content

Commit

Permalink
Make duplicate result detection more 'correct'
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesBrill committed Feb 21, 2021
1 parent 19108c5 commit 353d853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RecognitionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default class RecognitionManager {
}
}
let isDuplicateResult = false
if (this.interimTranscript === '') {
if (this.interimTranscript === '' && this.finalTranscript !== '') {
if (this.previousResultWasFinalOnly) {
isDuplicateResult = true
}
Expand Down

0 comments on commit 353d853

Please sign in to comment.