mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Clean up TTS request code
This commit is contained in:
parent
1aa38db4e6
commit
1035e9da28
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue