From 3996cc0c6b5aea3295daf19f984674abe30c9b9f Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Thu, 7 Feb 2019 17:16:49 -0500 Subject: [PATCH] Add Welsh, Swedish and Turkish --- src/extensions/scratch3_text2speech/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/extensions/scratch3_text2speech/index.js b/src/extensions/scratch3_text2speech/index.js index d779867bb..2b04d06eb 100644 --- a/src/extensions/scratch3_text2speech/index.js +++ b/src/extensions/scratch3_text2speech/index.js @@ -162,6 +162,10 @@ class Scratch3Text2SpeechBlocks { */ get LANGUAGE_INFO () { return { + 'cy': { + name: 'Welsh', + singleGender: true + }, 'da': { name: 'Danish' }, @@ -213,6 +217,14 @@ class Scratch3Text2SpeechBlocks { 'es': { name: 'Spanish (European)' }, + 'sv': { + name: 'Swedish', + singleGender: true + }, + 'tr': { + name: 'Turkish', + singleGender: true + }, 'es-419': { name: 'Spanish (Latin American)' }, @@ -235,6 +247,7 @@ class Scratch3Text2SpeechBlocks { */ localeToPolly (locale) { const pollyLocales = { + 'cy': 'cy-GB', // Welsh 'da': 'da-DK', // Danish 'nl': 'nl-NL', // Dutch 'en': 'en-US', // English @@ -252,6 +265,8 @@ class Scratch3Text2SpeechBlocks { 'ru': 'ru-RU', // Russian 'es': 'es-ES', // Spanish (European) 'es-419': 'es-US', // Spanish (Latin American) + 'sv': 'sv-SE', // Swedish + 'tr': 'tr-TR', // Turkish 'zh-cn': 'cmn-CN', // Chinese (simplified) -> Mandarin 'zh-tw': 'cmn-CN' // Chinese (traditional) -> Mandarin };