https://montreal-forced-aligner.readthedocs.io/en/latest/index.html
https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/releases/tag/v1.0.1
tar -zxvf montreal-forced-aligner_linux.tar.gz
copy ./montreal-forced-aligner/lib/libpython3.6m.so.1.0
and put it in the same dir and name it libpython3.6m.so
./montreal-forced-aligner/bin/mfa_align corpus_dir dict_path acoustic_model output_dir
or
./montreal-forced-aligner/bin/mfa_train_and_align corpus_dir dict_path output_dir
acoustic_model: https://montreal-forced-aligner.readthedocs.io/en/latest/pretrained_models.html
./montreal-forced-aligner/bin/mfa_align ./LJSpeech ./lexicon/librispeech-lexicon.txt english ./textgrid
./montreal-forced-aligner/bin/mfa_align ./AISHELL3 ./lexicon/pinyin-lexicon.txt mandarin.zip ./textgrid
./montreal-forced-aligner/bin/mfa_train_and_align ./AISHELL3-r ./lexicon/pinyin-lexicon-r.txt ./textgrid