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