mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Cleanup
This commit is contained in:
parent
6ac82f3183
commit
f58e9276e8
1 changed files with 1 additions and 3 deletions
|
@ -298,8 +298,6 @@ class Scratch3SpeakBlocks {
|
||||||
const gender = this.VOICE_INFO[state.voiceId].gender;
|
const gender = this.VOICE_INFO[state.voiceId].gender;
|
||||||
const playbackRate = this.VOICE_INFO[state.voiceId].playbackRate;
|
const playbackRate = this.VOICE_INFO[state.voiceId].playbackRate;
|
||||||
|
|
||||||
let locale = this.getViewerLanguageCode();
|
|
||||||
|
|
||||||
// @todo localize this?
|
// @todo localize this?
|
||||||
if (state.voiceId === KITTEN_ID) {
|
if (state.voiceId === KITTEN_ID) {
|
||||||
words = words.replace(/\w+/g, 'meow');
|
words = words.replace(/\w+/g, 'meow');
|
||||||
|
@ -307,7 +305,7 @@ class Scratch3SpeakBlocks {
|
||||||
|
|
||||||
// Build up URL
|
// Build up URL
|
||||||
let path = `${SERVER_HOST}/synth`;
|
let path = `${SERVER_HOST}/synth`;
|
||||||
path += `?locale=${locale}`;
|
path += `?locale=${this.getViewerLanguageCode()}`;
|
||||||
path += `&gender=${gender}`;
|
path += `&gender=${gender}`;
|
||||||
path += `&text=${encodeURI(words)}`;
|
path += `&text=${encodeURI(words)}`;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue