File tree 5 files changed +6
-9
lines changed
5 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 2
2
"firstRun" : true ,
3
3
"version" : " 0.13.0" ,
4
4
"enabledModels" : [],
5
- "speech" : " google|zh-cn " ,
5
+ "speech" : " google|zh" ,
6
6
"target" : " pinyin" ,
7
7
"fields" : {
8
8
"hanzi" : [
Original file line number Diff line number Diff line change 39
39
40
40
SPEECH_ENGINES = {
41
41
'Baidu Translate' : 'baidu|zh' ,
42
- 'Google Mandarin (PRC)' : 'google|zh-cn ' ,
43
- 'Google Mandarin (Taiwan)' : 'google|zh-tw' ,
42
+ 'Google Mandarin (PRC)' : 'google|zh' ,
43
+ # 'Google Mandarin (Taiwan)': 'google|zh-tw', # Does not work as of 2021-01-29
44
44
'Amazon Polly' : 'aws|Zhiyu' ,
45
45
'Disabled' : None ,
46
46
}
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def _main_langs():
98
98
'uk' : 'Ukrainian' ,
99
99
'ur' : 'Urdu' ,
100
100
'vi' : 'Vietnamese' ,
101
- 'zh-CN ' : 'Chinese'
101
+ 'zh' : 'Chinese'
102
102
}
103
103
104
104
@@ -114,9 +114,6 @@ def _extra_langs():
114
114
115
115
"""
116
116
return {
117
- # Chinese
118
- 'zh-cn' : 'Chinese (Mandarin/China)' ,
119
- 'zh-tw' : 'Chinese (Mandarin/Taiwan)' ,
120
117
# English
121
118
'en-us' : 'English (US)' ,
122
119
'en-ca' : 'English (Canada)' ,
Original file line number Diff line number Diff line change 21
21
22
22
23
23
class AudioDownloader :
24
- def __init__ (self , text , source = 'google|zh-cn ' ):
24
+ def __init__ (self , text , source = 'google|zh' ):
25
25
self .text = text
26
26
self .service , self .lang = source .split ('|' )
27
27
self .path = self .get_path ()
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ def model(self):
299
299
'Ruby (Bopomofo)' : '<span class="tone2"><ruby>床<rt>ㄔㄨㄤˊ</rt></ruby></span><span class="tone1"><ruby>单<rt>ㄉㄢ</rt></ruby></span>' ,
300
300
'Ruby (Jyutping)' : '' ,
301
301
'Silhouette' : '_ _' ,
302
- 'Sound (Mandarin)' : '[sound:床单_google_zh-cn .mp3]' ,
302
+ 'Sound (Mandarin)' : '[sound:床单_google_zh.mp3]' ,
303
303
'Sound (Cantonese)' : '' ,
304
304
}
305
305
fields = expected .keys ()
You can’t perform that action at this time.
0 commit comments