8 lines
1005 B
Bash
8 lines
1005 B
Bash
IFS=$'\n'
|
|
for model in tts_models/en/ek1/tacotron2 tts_models/en/ljspeech/tacotron2-DDC tts_models/en/ljspeech/tacotron2-DDC_ph tts_models/en/ljspeech/glow-tts tts_models/en/ljspeech/speedy-speech tts_models/en/ljspeech/tacotron2-DCA tts_models/en/ljspeech/vits tts_models/en/ljspeech/vits--neon tts_models/en/ljspeech/fast_pitch tts_models/en/ljspeech/overflow tts_models/en/ljspeech/neural_hmm tts_models/en/vctk/vits tts_models/en/vctk/fast_pitch tts_models/en/sam/tacotron-DDC tts_models/en/blizzard2013/capacitron-t2-c50 tts_models/en/blizzard2013/capacitron-t2-c150_v2 tts_models/en/multi-dataset/tortoise-v2 tts_models/en/jenny/jenny tts_models/es/mai/tacotron2-DDC tts_models/es/css10/vits
|
|
do
|
|
filename=$(echo $model | awk -F "/" '{print $4}')
|
|
mkdir out/$filename
|
|
echo "$(cat words.txt | grep -v '#')" | xargs -I% -P2 -- tts --text "%" --model_name "$model" --out_path out/$filename/$(echo % | sed 's/ /_/g').wav
|
|
# echo "$(cat words.txt | grep -v '#')" | xargs -I% -P8 -- echo "%"
|
|
done |