> For the complete documentation index, see [llms.txt](https://23yun.gitbook.io/23yun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://23yun.gitbook.io/23yun/al_speechrecognition/an-zhuang.md).

# 安装

1. 打开`config.lua`配置语音识别按键，默认`n`键和`m`键，建议保持默认
2. 打开`config.js`输入自己的秘钥和声音选择，秘钥获取在下面

### 秘钥获取

1. 访问科大讯飞开放平台 <https://console.xfyun.cn/services/iat>
2. 创建自己的app应用，名字描述都可以随便写

<figure><img src="/files/kcOxV599TLH3U1dvN1jp" alt=""><figcaption></figcaption></figure>

3. 获取免费用量，并获得秘钥

<figure><img src="/files/tHqTQImHqjes9g2cBfJJ" alt=""><figcaption></figcaption></figure>

4. 在`server/editable.lua`和`client/editable.lua`里面编写自己的玩法，文件里面有例子，也可以自己另外写个插件编写玩法，效果是一样的
