File size: 1,109 Bytes
9bcbe02 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# make berlin wavs
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,
# "--affect",
#'--image', '_tmp_banner.png',
# '--scene', 'calm sounds of castle',
'--voice', vox,
'--out_file', text_file[:-4], # save to correct location is handled in client
])
|