From f1c1883881e5635a7402acaa2cd2d694e3b67e85 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Sun, 21 Apr 2019 21:18:56 -0400 Subject: [PATCH] Add Arabic to Text to Speech --- src/extensions/scratch3_text2speech/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/extensions/scratch3_text2speech/index.js b/src/extensions/scratch3_text2speech/index.js index 6093a7c52..c4aa0b423 100644 --- a/src/extensions/scratch3_text2speech/index.js +++ b/src/extensions/scratch3_text2speech/index.js @@ -78,6 +78,7 @@ const FEMALE_GIANT_RATE = 0.79; // -4 semitones /** * Language ids. The value for each language id is a valid Scratch locale. */ +const ARABIC_ID = 'ar'; const CHINESE_ID = 'zh-cn'; const DANISH_ID = 'da'; const DUTCH_ID = 'nl'; @@ -211,6 +212,12 @@ class Scratch3Text2SpeechBlocks { */ get LANGUAGE_INFO () { return { + [ARABIC_ID]: { + name: 'Arabic', + locales: ['ar'], + speechSynthLocale: 'arb', + singleGender: true + }, [CHINESE_ID]: { name: 'Chinese (Mandarin)', locales: ['zh-cn', 'zh-tw'],