etos tts
1.0.0
ETOS TTS旨在建立一个神经文本到语音(TTS),该语音能够在野外采样的声音中转换为语音。这是Tacotron的Pytorch实现:完全端到端的文本到语音合成模型。
sudo apt install libsndfile1您可以使用PIP安装其他要求。
pip3 install -r requirements.txt
您可以在models/may22下使用预据的模型并运行TTS Web服务器:
python server.py -c server_conf.json
然后访问http://127.0.0.1:8000 ,然后享受。
当前TTS为数据加载程序提供
要运行自己的培训,您需要定义config.json文件(下面的简单模板),然后使用命令致电。
train.py --config_path config.json
如果您想使用特定的GPU。
CUDA_VISIBLE_DEVICES="0,1,4" train.py --config_path config.json
每次运行都会在您在config.json中设置的文件夹下创建一个具有相关日期和时间的实验文件夹。而且,如果该文件夹尚无检查站,则按CTRL+C时将其删除。
如果您指出的话--logdir实验文件夹,您也可以享受带有几个良好训练日志的良好训练日志的张板。
示例config.json :
{
"num_mels": 80,
"num_freq": 1025,
"sample_rate": 22050,
"frame_length_ms": 50,
"frame_shift_ms": 12.5,
"preemphasis": 0.97,
"min_level_db": -100,
"ref_level_db": 20,
"embedding_size": 256,
"text_cleaner": "english_cleaners",
"epochs": 200,
"lr": 0.002,
"warmup_steps": 4000,
"batch_size": 32,
"eval_batch_size":32,
"r": 5,
"mk": 0.0, // guidede attention loss weight. if 0 no use
"priority_freq": true, // freq range emphasis
"griffin_lim_iters": 60,
"power": 1.2,
"dataset": "TWEB",
"meta_file_train": "transcript_train.txt",
"meta_file_val": "transcript_val.txt",
"data_path": "/data/shared/BibleSpeech/",
"min_seq_len": 0,
"num_loader_workers": 8,
"checkpoint": true, // if save checkpoint per save_step
"save_step": 200,
"output_path": "/path/to/my_experiment",
}