Skip to content

Commit

Permalink
Fix Kaldi marking of whether retained utterance has dictation
Browse files Browse the repository at this point in the history
  • Loading branch information
daanzu committed Oct 29, 2021
1 parent 118defb commit 3057a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dragonfly/engines/backend_kaldi/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def _do_recognition(self, timeout=None, single=False, audio_iter=None):
if kaldi_rule and is_acceptable_recognition: # Don't store audio/metadata for bad recognitions
self.audio_store.finalize(parsed_output,
kaldi_rule.parent_grammar.name, kaldi_rule.parent_rule.name,
likelihood=expected_error_rate, has_dictation=kaldi_rule.has_dictation)
likelihood=expected_error_rate, has_dictation=recognition.has_dictation)
else:
self.audio_store.cancel()

Expand Down

0 comments on commit 3057a5c

Please sign in to comment.