Clean up TTS request code

This commit is contained in:
adroitwhiz 2021-03-04 00:29:50 -05:00
parent 1aa38db4e6
commit 1035e9da28

View file

@ -734,7 +734,7 @@ class Scratch3Text2SpeechBlocks {
// Play the sound // Play the sound
const sound = { const sound = {
data: { data: {
buffer: buffer buffer
} }
}; };
return this.runtime.audioEngine.decodeSoundPlayer(sound); return this.runtime.audioEngine.decodeSoundPlayer(sound);
@ -760,7 +760,6 @@ class Scratch3Text2SpeechBlocks {
}) })
.catch(err => { .catch(err => {
log.warn(err); log.warn(err);
return;
}); });
} }
} }