forked from scalability4all/voice-enabled-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
voice_conf.py
45 lines (45 loc) · 1.1 KB
/
voice_conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
def getVoiceID(arg):
return {
"af": "afrikaans",
"bg": "bulgarian",
"ca": "catalan",
"cs": "czech",
"da": "danish",
"de": "german",
"el": "greek",
"en": "english",
"es": "spanish",
"et": "estonian",
"fa": "persian",
"fi": "finnish",
"fr": "french",
"hi": "hindi",
"hr": "croatian",
"hu": "hungarian",
"hy": "armenian",
"id": "indonesian",
"is": "icelandic",
"it": "italian",
"ka": "georgian",
"kn": "kannada",
"lt": "lithuanian",
"lv": "latvian",
"mk": "macedonian",
"ml": "malayalam",
"ms": "malay" ,
"ne": "nepali" ,
"nl": "dutch" ,
"pa": "punjabi",
"pl": "polish",
"pt": "brazil",
"ro": "romanian",
"ru": "russian",
"sk": "slovak",
"sq": "albanian",
"sr": "serbian",
"sv": "swedish",
"sw": "swahili-test",
"ta": "tamil",
"tr": "turkish",
"vi": "vietnam"
}.get(arg, "default")