feat: append voice name to output file name
This commit is contained in:
parent
a183bbea5e
commit
5aa5208517
1 changed files with 1 additions and 1 deletions
2
tts.py
2
tts.py
|
@ -64,7 +64,7 @@ def main():
|
|||
|
||||
start_time = time()
|
||||
for i, (gs, ps, audio) in enumerate(generator):
|
||||
output_file_name=f'outputs/{name}-{i}.wav'
|
||||
output_file_name=f'outputs/{name}-{voice}-{i}.wav'
|
||||
os.makedirs(os.path.dirname(output_file_name), exist_ok=True)
|
||||
output_files.append(output_file_name)
|
||||
sf.write(output_file_name, audio, 24000)
|
||||
|
|
Loading…
Reference in a new issue