MarineHuang / mfa

About how to use 'Montreal Forced Aligner'.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Montreal-Forced-Aligner

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

Download

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.0and put it in the same dir and name it libpython3.6m.so

Usage

./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

English

./montreal-forced-aligner/bin/mfa_align ./LJSpeech ./lexicon/librispeech-lexicon.txt english ./textgrid

Mandarin

 ./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

About

About how to use 'Montreal Forced Aligner'.