Skip to content

Files

Latest commit

 

History

History
32 lines (19 loc) · 695 Bytes

注意.md

File metadata and controls

32 lines (19 loc) · 695 Bytes

安装

conda create --prefix ./venv python==3.11

conda activate ./venv

conda install -c conda-forge montreal-forced-aligner

pip install -r ./api_requirements.txt -i https://mirrors.aliyun.com/pypi/simple 


pip install hanlp -U   # 安装或升级 hanlp 库

设置环境变量

MFA_ROOT_DIR 来存储全局配置设置和保存的模型

默认为 /home/docs/Documents/MFA

下载字典与声音模型

mfa model download dictionary mandarin_china_mfa
mfa model download acoustic mandarin_mfa

官网 https://montreal-forced-aligner.readthedocs.io/en/latest/getting_started.html fastText 语言检测模型 https://fasttext.cc/docs/en/language-identification.html