montreal-forced-aligner

https://montreal-forced-aligner.readthedocs.io/en/latest/index.html

conda config --add channels conda-forge
conda install montreal-forced-aligner

mfa model download acoustic english_us_arpa
mfa model download dictionary english_us_arpa

mfa validate ~/mfa_data/my_corpus english_us_arpa english_us_arpa --clean
mfa align ~/mfa_data/my_corpus english_us_arpa english_us_arpa ~/mfa_data/my_corpus_aligned --clean

下载:

https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/releases/tag/v1.0.1

然后,解压tar -zxvf montreal-forced-aligner_linux.tar.gz

然后,把./montreal-forced-aligner/lib/libpython3.6m.so.1.0这个文件复制一个并改名libpython3.6m.so

用官网说的什么conda create的坑太多了,直接用安装包

使用:

./montreal-forced-aligner/bin/mfa_align   corpus_dir   dict_path   acoustic_model   output_dir
./montreal-forced-aligner/bin/mfa_align   ./data   ./lexicon/librispeech-lexicon.txt   english   ./textgrid

或者

./montreal-forced-aligner/bin/mfa_train_and_align    corpus_dir    dict_path    output_dir
./montreal-forced-aligner/bin/mfa_train_and_align    ./data    ./lexicon/pinyin-lexicon-r.txt    ./textgrid

https://montreal-forced-aligner.readthedocs.io/en/latest/index.html

https://www.bilibili.com/read/cv6815691/

https://github.com/OlaWod/mfa

posted on 2021-04-04 01:51  HolaWorld  阅读(1610)  评论(0编辑  收藏  举报

导航