Stereo0001 commited on
Commit
e893d2f
·
1 Parent(s): d24ab7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def text_to_speech_edge(text, language_code):
15
  with tempfile.NamedTemporaryFile(delete=False, suffix=".mp3") as tmp_file:
16
  tmp_path = tmp_file.name
17
 
18
- await communicate.save(tmp_path)
19
 
20
  return "语音合成完成:{}".format(text), tmp_path
21
 
 
15
  with tempfile.NamedTemporaryFile(delete=False, suffix=".mp3") as tmp_file:
16
  tmp_path = tmp_file.name
17
 
18
+ communicate.save(tmp_path)
19
 
20
  return "语音合成完成:{}".format(text), tmp_path
21