1、增加edge-tts语音合成(免费)可替换azure-tts(支持情绪化语音);
2、替换flask发行版运行方式。
This commit is contained in:
xszyou
2023-03-15 02:22:50 +08:00
parent 068f4d7d17
commit 2dca3ad6db
9 changed files with 113 additions and 71 deletions

View File

@@ -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)