|
|
|
import subprocess |
|
|
|
BERLIN_DIR = 'berlin_30_Oct_2024/' |
|
|
|
pairs = [ |
|
['en_US/hifi-tts_low#9017', 'lamma8b_children.txt', False], |
|
['en_US/hifi-tts_low#9017' , 'lamma70b_children.txt', False], |
|
['en_US/hifi-tts_low#9017' , 'lamma400b_children.txt', False], |
|
['en_US/cmu-arctic_low#jmk', 'lamma8b_professionals.txt', True], |
|
['en_US/cmu-arctic_low#jmk', 'lamma70b_professionals.txt', True], |
|
['en_US/cmu-arctic_low#jmk', 'lamma400b_professionals.txt', True], |
|
['en_US/cmu-arctic_low#eey' , 'lamma70b_visualimpair.txt', True], |
|
['en_US/cmu-arctic_low#eey' , 'lamma8b_visualimpair.txt', True], |
|
['en_US/cmu-arctic_low#eey' , 'lamma400b_visualimpair.txt', True], |
|
] |
|
|
|
for vox, text_file, affect in pairs: |
|
print(vox, text_file) |
|
subprocess.run( |
|
[ |
|
"python", |
|
"tts.py", |
|
"--text", BERLIN_DIR + text_file, |
|
|
|
|
|
|
|
'--voice', vox, |
|
'--out_file', text_file[:-4], |
|
]) |
|
|
|
|