HoneyTian commited on
Commit
880d02b
·
1 Parent(s): 44edd1d
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -45,6 +45,10 @@ async def edge_tts_get_speakers() -> List[str]:
45
  voices = await edge_tts.list_voices()
46
  for voice in voices:
47
  short_name = voice["ShortName"]
 
 
 
 
48
  edge_tts_speakers_choices.append(short_name)
49
  return edge_tts_speakers_choices
50
 
 
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