Spaces:
Running
Running
vuxuanhoan
commited on
Commit
•
4f0fd13
1
Parent(s):
880d02b
Update main.py
Browse files
main.py
CHANGED
@@ -39,16 +39,11 @@ def get_args():
|
|
39 |
args = parser.parse_args()
|
40 |
return args
|
41 |
|
42 |
-
|
43 |
async def edge_tts_get_speakers() -> List[str]:
|
44 |
edge_tts_speakers_choices = list()
|
45 |
voices = await edge_tts.list_voices()
|
46 |
for voice in voices:
|
47 |
short_name = voice["ShortName"]
|
48 |
-
locale = voice["Locale"]
|
49 |
-
if locale != "zh-CN":
|
50 |
-
continue
|
51 |
-
|
52 |
edge_tts_speakers_choices.append(short_name)
|
53 |
return edge_tts_speakers_choices
|
54 |
|
|
|
39 |
args = parser.parse_args()
|
40 |
return args
|
41 |
|
|
|
42 |
async def edge_tts_get_speakers() -> List[str]:
|
43 |
edge_tts_speakers_choices = list()
|
44 |
voices = await edge_tts.list_voices()
|
45 |
for voice in voices:
|
46 |
short_name = voice["ShortName"]
|
|
|
|
|
|
|
|
|
47 |
edge_tts_speakers_choices.append(short_name)
|
48 |
return edge_tts_speakers_choices
|
49 |
|