mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Fix a copy/paste comment error and initialize current_utterance differently
This commit is contained in:
parent
a2eee6a1dd
commit
ffced16b95
1 changed files with 3 additions and 3 deletions
|
@ -33,8 +33,8 @@ const serverURL = 'wss://speech.scratch.mit.edu';
|
||||||
const finalResponseTimeoutDurationMs = 3000;
|
const finalResponseTimeoutDurationMs = 3000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The amount of time to wait between when we stop sending speech data to the server and when
|
* The max amount of time the Listen And Wait block will listen for. It may listen for less time
|
||||||
* we expect the transcription result marked with isFinal: true to come back from the server.
|
* if we get back results that are good and think the user is done talking.
|
||||||
* Currently set to 10sec. This should not exceed the speech api limit (60sec) without redoing how
|
* Currently set to 10sec. This should not exceed the speech api limit (60sec) without redoing how
|
||||||
* we stream the microphone data data.
|
* we stream the microphone data data.
|
||||||
* @type {int}
|
* @type {int}
|
||||||
|
@ -76,7 +76,7 @@ class Scratch3SpeechBlocks {
|
||||||
* @type {String}
|
* @type {String}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this._currentUtterance = null;
|
this._currentUtterance = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Similar to _currentUtterance, but set back to '' at the beginning of listening block.
|
* Similar to _currentUtterance, but set back to '' at the beginning of listening block.
|
||||||
|
|
Loading…
Reference in a new issue