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
b4205372c3
commit
e8ce37e776
1 changed files with 3 additions and 3 deletions
|
@ -33,8 +33,8 @@ const serverURL = 'wss://speech.scratch.mit.edu';
|
|||
const finalResponseTimeoutDurationMs = 3000;
|
||||
|
||||
/**
|
||||
* The amount of time to wait between when we stop sending speech data to the server and when
|
||||
* we expect the transcription result marked with isFinal: true to come back from the server.
|
||||
* The max amount of time the Listen And Wait block will listen for. It may listen for less time
|
||||
* 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
|
||||
* we stream the microphone data data.
|
||||
* @type {int}
|
||||
|
@ -76,7 +76,7 @@ class Scratch3SpeechBlocks {
|
|||
* @type {String}
|
||||
* @private
|
||||
*/
|
||||
this._currentUtterance = null;
|
||||
this._currentUtterance = '';
|
||||
|
||||
/**
|
||||
* Similar to _currentUtterance, but set back to '' at the beginning of listening block.
|
||||
|
|
Loading…
Reference in a new issue