mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Remove some code that set the utterance to the fuzzy match result
This commit is contained in:
parent
c8b3c42891
commit
3eec3170b2
1 changed files with 1 additions and 9 deletions
|
@ -444,15 +444,7 @@ class Scratch3SpeechBlocks {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Decide whether this is the right thing.
|
this._currentUtterance = transcriptionResult;
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
log.info(`Keeing result: ${this._currentUtterance}`);
|
log.info(`Keeing result: ${this._currentUtterance}`);
|
||||||
this._utteranceForEdgeTrigger = transcriptionResult;
|
this._utteranceForEdgeTrigger = transcriptionResult;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue