下载:
conda create -n aligner -c conda-forge openblas python=3.8 openfst pynini ngram baumwelch
conda activate aligner
pip install montreal-forced-aligner
mfa thirdparty download # 这时候会网不好装不上,解决方案见下方
mfa thirdparty download 可能会没有网。将/home/zz/anaconda3/envs/aligner/lib/python3.8/site-packages/montreal_forced_aligner/thirdparty/download.py 文件的下图所示位置注释掉。直接从链接
https://github.com/MontrealCorpusTools/mfa-models/raw/master/thirdparty/mfa_thirdparty_linux.zip
下载mfa要下载的文件。下载后,放到~/Documents/MFA/thirdparty/ 下,改名为linux.zip。再次运行 mfa thirdparty download。作者:张大力
链接:https://www.zhihu.com/question/449645689/answer/1795942752
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
使用:
mfa align corpus_directory dictionary_path acoustic_model_path output_directory
https://montreal-forced-aligner.readthedocs.io/en/latest/aligning.html