diff --git a/src/extensions/scratch3_text2speech/index.js b/src/extensions/scratch3_text2speech/index.js index b3fd08fca..bcbc9e32d 100644 --- a/src/extensions/scratch3_text2speech/index.js +++ b/src/extensions/scratch3_text2speech/index.js @@ -331,7 +331,7 @@ class Scratch3SpeakBlocks { let path = `${SERVER_HOST}/synth`; path += `?locale=${locale}`; path += `&gender=${gender}`; - path += `&text=${encodeURI(words)}`; + path += `&text=${encodeURI(words.substring(0, 128))}`; // Perform HTTP request to get audio file return new Promise(resolve => {