Merge pull request #2059 from ericrosenbaum/feature/add-tts-hindi

Add Hindi language to Text to Speech
This commit is contained in:
Eric Rosenbaum 2019-03-22 16:42:35 -04:00 committed by GitHub
commit e236d29ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,7 @@ const DUTCH_ID = 'nl';
const ENGLISH_ID = 'en'; const ENGLISH_ID = 'en';
const FRENCH_ID = 'fr'; const FRENCH_ID = 'fr';
const GERMAN_ID = 'de'; const GERMAN_ID = 'de';
const HINDI_ID = 'hi';
const ICELANDIC_ID = 'is'; const ICELANDIC_ID = 'is';
const ITALIAN_ID = 'it'; const ITALIAN_ID = 'it';
const JAPANESE_ID = 'ja'; const JAPANESE_ID = 'ja';
@ -241,6 +242,12 @@ class Scratch3Text2SpeechBlocks {
locales: ['de'], locales: ['de'],
speechSynthLocale: 'de-DE' speechSynthLocale: 'de-DE'
}, },
[HINDI_ID]: {
name: 'Hindi',
locales: ['hi'],
speechSynthLocale: 'hi-IN',
singleGender: true
},
[ICELANDIC_ID]: { [ICELANDIC_ID]: {
name: 'Icelandic', name: 'Icelandic',
locales: ['is'], locales: ['is'],