mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -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;
|
||||
}
|
||||
|
||||
// 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}`);
|
||||
this._utteranceForEdgeTrigger = transcriptionResult;
|
||||
|
||||
|
|
Loading…
Reference in a new issue