mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Add Arabic to Text to Speech
This commit is contained in:
parent
9135780c55
commit
f1c1883881
1 changed files with 7 additions and 0 deletions
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue