mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
Merge pull request #1819 from ericrosenbaum/bugfix/text2speech-encoding
Text to Speech use encodeURIComponent
This commit is contained in:
commit
1ce88ca8bc
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ class Scratch3Text2SpeechBlocks {
|
|||
let path = `${SERVER_HOST}/synth`;
|
||||
path += `?locale=${this.localeToPolly(this.getCurrentLanguage())}`;
|
||||
path += `&gender=${gender}`;
|
||||
path += `&text=${encodeURI(words.substring(0, 128))}`;
|
||||
path += `&text=${encodeURIComponent(words.substring(0, 128))}`;
|
||||
|
||||
// Perform HTTP request to get audio file
|
||||
return new Promise(resolve => {
|
||||
|
|
Loading…
Reference in a new issue