#!/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