feats_extract.sh 706 Bytes
Newer Older
liugh5's avatar
liugh5 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# 特征提取
python3 kantts/preprocess/data_process.py \
--voice_input_dir Data/ptts_spk0_wav_autolabel \
--voice_output_dir training_stage/ptts_feats \
--audio_config kantts/configs/audio_config_se_16k.yaml \
--speaker F7 \
--se_model speech_personal_sambert-hifigan_nsf_tts_zh-cn_pretrain_16k/basemodel_16k/speaker_embedding/se.model    

# 扩充epoch
stage0=training_stage
voice=ptts_feats

cat $stage0/$voice/am_valid.lst  >> $stage0/$voice/am_train.lst
lines=0
while [ $lines -lt 400 ]
do
    shuf $stage0/$voice/am_train.lst >> $stage0/$voice/am_train.lst.tmp
    lines=$(wc -l < "$stage0/$voice/am_train.lst.tmp")
done
mv $stage0/$voice/am_train.lst.tmp $stage0/$voice/am_train.lst