Este repositório contém código que acompanha o documento "Alto-falante de granulação fina dependente de conteúdo para a adaptação do alto-falante zero na síntese de texto a fala", que é implementado com base no Ming024/FastSpeech2 (muito obrigado!).
2022-06-15 ATUALIZAÇÃO: Este trabalho foi aceito para o intercepation 2022.
pip3 install -r requirements.txtConsulte o Ming024/FastSpeech2 para obter mais detalhes.
Por exemplo,
python3 prepare_align.py config/AISHELL3/preprocess.yamlEm seguida, faça o download dos arquivos textGrid ou use o MFA para alinhar o corpus e coloque os arquivos textGrid em seu [preprocessd_data_path] como pré -Processed_data/aishell3/textGrid/.
Finalmente, execute o script de pré -processamento
python3 preprocess.py config/AISHELL3/preprocess.yamlAlém disso:
Treine o modelo
python3 train.py -p config/AISHELL3/preprocess.yaml -m config/AISHELL3/model.yaml -t config/AISHELL3/train.yaml Observado: se você achar que a perda de phnCls não parece estar tendendo ou não é perceptível, tente ajustar manualmente os ditos de símbolo em texto/símbolos.py (contém apenas fonemas relevantes) para melhorar a classificação do fonema funcionar melhor, e isso pode resolver o problema.
(Opcional) Use Tensorboard
tensorboard --logdir output/log/AISHELL3Para lote
python3 synthesize.py --source synbatch_chinese.txt --restore_step 250000 --mode batch -p config/AISHELL3/preprocess.yaml -m config/AISHELL3/model.yaml -t config/AISHELL3/train.yaml Para solteiro
# For Mandarin
python3 synthesize.py --text "清华大学人机语音交互实验室,聚焦人工智能场景下的智能语音交互技术研究。 " --ref [REF_SPEECH_PATH.wav] --restore_step 250000 --mode single -p config/AISHELL3/preprocess.yaml -m config/AISHELL3/model.yaml -t config/AISHELL3/train.yaml
# For English
python3 synthesize.py --text " Human Computer Speech Interaction Lab at Tsinghua University, targets artificial intelligence technologies for smart voice user interface. " --ref [REF_SPEECH_PATH.wav] --restore_step 250000 --mode single -p config/LibriTTS/preprocess.yaml -m config/LibriTTS/model.yaml -t config/LibriTTS/train.yaml @misc{zhou2022content,
title={Content-Dependent Fine-Grained Speaker Embedding for Zero-Shot Speaker Adaptation in Text-to-Speech Synthesis},
author={Zhou, Yixuan and Song, Changhe and Li, Xiang and Zhang, Luwen and Wu, Zhiyong and Bian, Yanyao and Su, Dan and Meng, Helen},
year={2022},
eprint={2204.00990},
archivePrefix={arXiv},
primaryClass={eess.AS}
}