From bdf27e20c59693be11a0e6f469c698f5dbfde483 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Wed, 12 Sep 2018 14:06:26 -0400 Subject: [PATCH] Trim to 128 chars --- src/extensions/scratch3_text2speech/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => {