CapsWriter/安装指南/安装指南.md
Haujet f4b90c2979 升级到了图形界面工具
改进了录音开始速度,按住大写锁定键说话就行了,不用再等待。
版本号更新到 2.0
2020-12-25 15:13:44 +08:00

36 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 安装依赖
先确保安装了 python
然后打开命令行窗口,切换到本文件夹,用以下命令安装依赖:
```
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install setuptools keyboard aliyunsdkcore configparser
cd alibabacloud-nls-python-sdk
python setup.py bdist_egg
python setup.py install
```
此外,还有一个依赖 `pyaudio` 不是太好安装,需要先到 [这个链接](https://www.lfd.uci.edu/~gohlke/pythonlibs) 下载 pyaudio 对应版本的 whl 文件。例如,我安装的是 python3.7 64位版本就下载 `PyAudio0.2.11cp37cp37mwin_amd64.whl` ,放到本文件夹,用
```
pip install PyAudio0.2.11cp37cp37mwin_amd64.whl
```
安装好 pyaudio。为了方便作者已经将 python3.6 到 3.9 的 whl 文件下载到本文件夹,根据版本选择安装即可)
## API 配置
### 开通服务
你需要先到阿云开发者控制台开通 **RAM访问控制** ,进入 **RAM访问控制** 的控制台,新建一个用户,记下它的 **accessID**、**accessKey**,然后再为它添加 **管理智能语音交互NLS** 的权限。
接下来开通 **智能语音交互** 服务,新建一个项目:
- 类别:非电话
- 分类:通用
- 场景:中文普通话 或 其它语言(想识别哪个语言就用哪个)
发布上线,再记下这个项目的 **appkey**