xfyun-client
v1.3.1
Published
[![NPM](https://img.shields.io/npm/v/xfyun-client)](https://www.npmjs.com/package/xfyun-client) ![License](https://img.shields.io/npm/l/xfyun-client)
Downloads
11
Readme
Xfyun Client
Install
npm install xfyun-client
Install peer dependencies
npm install rxjs@7
Usage
import { IseConnection } from 'xfyun-client';
const connection = new IseConnection({
language: 'en_vip',
group: 'adult',
category: 'read_sentence',
text: '',
appId: '',
wsUrl: '',
});
await connection.connect();
await connection.sendAudioBuffer(data);
await connection.complete();
const response = connection.getResponse();