From b3ef49a8bbfbad6a7bb8368ca8aaf80f3523c5f3 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Thu, 21 Mar 2019 16:06:42 -0400 Subject: [PATCH] Add Hindi language 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 d1f0b0d38..6093a7c52 100644 --- a/src/extensions/scratch3_text2speech/index.js +++ b/src/extensions/scratch3_text2speech/index.js @@ -84,6 +84,7 @@ 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'; @@ -241,6 +242,12 @@ class Scratch3Text2SpeechBlocks { locales: ['de'], speechSynthLocale: 'de-DE' }, + [HINDI_ID]: { + name: 'Hindi', + locales: ['hi'], + speechSynthLocale: 'hi-IN', + singleGender: true + }, [ICELANDIC_ID]: { name: 'Icelandic', locales: ['is'],