CDFSE_FastSpeech2
1.0.0
このレポは、論文「Ming024/fastspeech2に基づいて実装されている「テキストからスピーチ合成におけるゼロショットスピーカーの適応のためのコンテンツ依存性のファイングレインスピーカーの埋め込み」というコードが含まれています(ありがとう!)。
2022-06-15アップデート:この作業は、スピーチ2022に受け入れられています。
pip3 install -r requirements.txt詳細については、Ming024/fastspeech2を参照してください。
例えば、
python3 prepare_align.py config/AISHELL3/preprocess.yaml次に、TextGridファイルをダウンロードするか、MFAを使用してコーパスを整列させ、PREPROCESSED_DATA/AISHELL3/TEXTGRID/のような[PREPROCESSED_DATA_PATH]にTextGridファイルを配置します。
最後に、プリプロセッシングスクリプトを実行します
python3 preprocess.py config/AISHELL3/preprocess.yaml加えて:
モデルをトレーニングします
python3 train.py -p config/AISHELL3/preprocess.yaml -m config/AISHELL3/model.yaml -t config/AISHELL3/train.yaml 注意: PHNCLSの損失がトレンドダウンしていないように見えるか、目立たない場合は、テキスト/シンボルのシンボルディクトを手動で調整してみてください。
(オプション)テンソルボードを使用します
tensorboard --logdir output/log/AISHELL3バッチ用
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 シングル用
# 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}
}