mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
1.5 KiB
Executable File
1.5 KiB
Executable File
Installation
Install Conda (Optional):
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
conda create -n funasr python=3.7
conda activate funasr
Install Pytorch (version >= 1.11.0):
pip install torch torchaudio
For more details about torch, please see https://pytorch.org/get-started/locally
Install funasr
Install from pip
pip install -U funasr
# For the users in China, you could install with the command:
# pip install -U funasr -i https://mirror.sjtu.edu.cn/pypi/web/simple
Or install from source code
git clone https://github.com/alibaba/FunASR.git && cd FunASR
pip install -e ./
# For the users in China, you could install with the command:
# pip install -e ./ -i https://mirror.sjtu.edu.cn/pypi/web/simple
Install modelscope (Optional)
If you want to use the pretrained models in ModelScope, you should install the modelscope:
pip install -U modelscope
# For the users in China, you could install with the command:
# pip install -U modelscope -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html -i https://mirror.sjtu.edu.cn/pypi/web/simple