xfyun-nodejs-sdk

nodejs sdk for xfyun ===========

Usage no npm install needed!

<script type="module">
  import xfyunNodejsSdk from 'https://cdn.skypack.dev/xfyun-nodejs-sdk';
</script>

README

nodejs sdk for xfyun

NPM version npm download

功能模块

科大讯飞REST API文档

  • 语音合成 tts
  • 语音听写 iat
  • 语音评测 ise
  • 实时语音转写 rtasr

Installation

$ npm install --save xfyun-nodejs-sdk

Usage

const XFYun = require('xfyun-nodejs-sdk')

const xfYun = new XFYun(appId, appKey)

const result = await xfYun.tts('测试一下这个翻译', 'audio/L16;rate=16000', 'raw', 'xiaoyan')