Trim to 128 chars

This commit is contained in:
Eric Rosenbaum 2018-09-12 14:06:26 -04:00
parent 91d2663c35
commit bdf27e20c5

View file

@ -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 => {