mirror of
https://github.com/xszyou/Fay.git
synced 2026-03-12 17:51:28 +08:00
20230315
1、增加edge-tts语音合成(免费)可替换azure-tts(支持情绪化语音); 2、替换flask发行版运行方式。
This commit is contained in:
4
main.py
4
main.py
@@ -17,7 +17,7 @@ def __clear_samples():
|
||||
if not os.path.exists("./samples"):
|
||||
os.mkdir("./samples")
|
||||
for file_name in os.listdir('./samples'):
|
||||
if file_name.startswith('sample-') and file_name.endswith('.wav'):
|
||||
if file_name.startswith('sample-') and file_name.endswith('.mp3'):
|
||||
os.remove('./samples/' + file_name)
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ def __clear_songs():
|
||||
if not os.path.exists("./songs"):
|
||||
os.mkdir("./songs")
|
||||
for file_name in os.listdir('./songs'):
|
||||
if file_name.endswith('.wav'):
|
||||
if file_name.endswith('.mp3'):
|
||||
os.remove('./songs/' + file_name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user