Remove some code that set the utterance to the fuzzy match result

This commit is contained in:
picklesrus 2018-05-09 17:05:55 -07:00
parent c8b3c42891
commit 3eec3170b2

View file

@ -444,15 +444,7 @@ class Scratch3SpeechBlocks {
return; return;
} }
// TODO: Decide whether this is the right thing.
// This sets the currentUtterance (which is returned by the reporter) to the fuzzy match if we had one.
// That means it'll often get set to a phrase from one of the 'when I hear' blocks instead of the
// full phrase that the user said.
if (fuzzyMatchResult) {
this._currentUtterance = fuzzyMatchResult;
} else {
this._currentUtterance = transcriptionResult; this._currentUtterance = transcriptionResult;
}
log.info(`Keeing result: ${this._currentUtterance}`); log.info(`Keeing result: ${this._currentUtterance}`);
this._utteranceForEdgeTrigger = transcriptionResult; this._utteranceForEdgeTrigger = transcriptionResult;