diff --git a/src/extensions/scratch3_text2speech/index.js b/src/extensions/scratch3_text2speech/index.js index 5c7406fff..074a7718f 100644 --- a/src/extensions/scratch3_text2speech/index.js +++ b/src/extensions/scratch3_text2speech/index.js @@ -65,15 +65,6 @@ const GIANT_ID = 'GIANT'; */ const KITTEN_ID = 'KITTEN'; -/** - * Language ids. - */ -const ENGLISH_ID = 'ENGLISH'; -const CHINESE_ID = 'CHINESE'; -const TURKISH_ID = 'TURKISH'; -const JAPANESE_ID = 'JAPANESE'; - - /** * Playback rate for the tenor voice, for cases where we have only a female gender voice. */ @@ -84,6 +75,32 @@ const FEMALE_TENOR_RATE = 0.89; // -2 semitones */ const FEMALE_GIANT_RATE = 0.79; // -4 semitones +/** + * Language ids. The value for each language id must be a valid Scratch locale. + */ +const CHINESE_ID = 'zh-cn'; +const DANISH_ID = 'da'; +const DUTCH_ID = 'nl'; +const ENGLISH_ID = 'en'; +const FRENCH_ID = 'fr'; +const GERMAN_ID = 'de'; +const HINDI_ID = 'hi'; +const ICELANDIC_ID = 'is'; +const ITALIAN_ID = 'it'; +const JAPANESE_ID = 'ja'; +const KOREAN_ID = 'ko'; +const NORWEGIAN_ID = 'no'; +const POLISH_ID = 'pl'; +const PORTUGUESE_BR_ID = 'pt-br'; +const PORTUGUESE_ID = 'pt'; +const ROMANIAN_ID = 'ro'; +const RUSSIAN_ID = 'ru'; +const SPANISH_ID = 'es'; +const SPANISH_419_ID = 'es-419'; +const SWEDISH_ID = 'sv'; +const TURKISH_ID = 'tr'; +const WELSH_ID = 'cy'; + /** * Class for the text2speech blocks. * @constructor