-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
30 lines (23 loc) · 1021 Bytes
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
基于pyaudio + aliyun-nls + ollama实现的简单版asr-llm
【安装过程】
1. 执行setup.sh
chmod 755 setup.sh
./setup.sh
2. 安装虚拟环境
python -m venv ./venv
3. 安装requirements.txt,使用aliyun镜像加速
./venv/bin/python -m pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
4. 本地安装nls
git clone https://github.com/aliyun/alibabacloud-nls-python-sdk.git
cd alibabacloud-nls-python-sdk
{项目路径}/venv/bin/python -m pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
{项目路径}/venv/bin/python -m pip install .
【执行过程】
1. .env添加aliyun配置
access key申请传送门:https://help.aliyun.com/zh/isi/getting-started/start-here
nls app key申请传送门:https://nls-portal.console.aliyun.com/applist
2. 启动ollama
# 默认使用qwen2.5模型,如需使用其他模型,可以调整.env中OLLAMA_MODEL变量,并ollama运行对应的模型即可
ollama run qwen2.5
3. 执行main.py
./venv/bin/python main.py