mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 19:41:56 +08:00
Update cmd-asr.py
slice files order by name
This commit is contained in:
parent
01a4684746
commit
fc218079ea
@ -25,7 +25,9 @@ model = AutoModel(model=path_asr, model_revision="v2.0.4",
|
||||
|
||||
|
||||
opt=[]
|
||||
for name in os.listdir(dir):
|
||||
file_names = os.listdir(dir)
|
||||
file_names.sort()
|
||||
for name in file_names:
|
||||
try:
|
||||
text = model.generate(input="%s/%s"%(dir,name))[0]["text"]
|
||||
opt.append("%s/%s|%s|ZH|%s"%(dir,name,opt_name,text))
|
||||
|
Loading…
x
Reference in New Issue
Block a user