# ESP - AI

<div align="center"> 
  <a name="readme-top"></a>
  <div style="background:#fff;border-radius: 12px;width:300px;">
    <img src="https://espai.fun/images/logo.png"/> 
  </div>
</div>

阿里智能语音交互平台语音识别服务，让 ESP - AI 接入阿里智能语音交互平台！

## 主要特性
1. 集成阿里智能语音交互平台语音识别服务
2. 支持热词识别

## 参数获取
你需要获取以下 3 个参数：
- **AccessKey ID** 和 **AccessKey Secret**：可从 [RAM 控制台](https://ram.console.aliyun.com/profile/access-keys) 获取。
- **Appkey**：创建智能语音平台项目，从 [阿里云智能语音交互平台控制台](https://nls-portal.console.aliyun.com/applist) 获取项目的 Appkey。


## 🌟 安装
```shell
npm i esp-ai-plugin-iat-nls
```
## 🚀 使用
```js
const espAi = require("esp-ai"); 

espAi({ 
    // 配置使用插件并且为插件配置api-key
    tts_server: "esp-ai-plugin-iat-nls",
    tts_config: {
         appkey: "xxx",
          AccessKeyId: "xxx",
          AccessKeySecret: "xxx",
    }, 

    // 引入插件
    plugins: [ 
        require("esp-ai-plugin-iat-nls")
    ], 
});
```


## 🔑 开发文档
- [阿里云智能平台开发文档](https://help.aliyun.com/zh/isi/developer-reference/websocket?spm=a2c4g.11186623.help-menu-30413.d_3_0_1_8.766743c5ZUUhbS)
- [详细使用教程](https://www.qingningz.cn/archives/2566)

## 📝 更新日志
### 2025-06-10  2.0  
- 修复： 对于官方破坏的代码进行了修复