Skip to content

Commit b80b05e

Browse files
Merge pull request #2131 from ericrosenbaum/feature/add-tts-arabic
Add Arabic to Text to Speech extension
2 parents 0f59251 + f1c1883 commit b80b05e

File tree

1 file changed

+7
-0
lines changed
  • src/extensions/scratch3_text2speech

1 file changed

+7
-0
lines changed

src/extensions/scratch3_text2speech/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const FEMALE_GIANT_RATE = 0.79; // -4 semitones
7878
/**
7979
* Language ids. The value for each language id is a valid Scratch locale.
8080
*/
81+
const ARABIC_ID = 'ar';
8182
const CHINESE_ID = 'zh-cn';
8283
const DANISH_ID = 'da';
8384
const DUTCH_ID = 'nl';
@@ -211,6 +212,12 @@ class Scratch3Text2SpeechBlocks {
211212
*/
212213
get LANGUAGE_INFO () {
213214
return {
215+
[ARABIC_ID]: {
216+
name: 'Arabic',
217+
locales: ['ar'],
218+
speechSynthLocale: 'arb',
219+
singleGender: true
220+
},
214221
[CHINESE_ID]: {
215222
name: 'Chinese (Mandarin)',
216223
locales: ['zh-cn', 'zh-tw'],

0 commit comments

Comments
 (0)