npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

chivoxsdk

v5.0.2

Published

<p style="height: 20px;"></p>

Downloads

1

Readme

ChiVoxSDK v5.0

简介

ChiVoxSDK v5.0是由苏州驰声信息科技(ChiVox Co., Ltd.)基于JavaScript EMCAScript 5 / 6规范开发的语音评测JSSDK。

内含:

  • 语音录音机(支持边录边评)
  • 播放器
  • 语音评测面板
  • 其他工具和功能函数

驰声语音评测服务的开发者们可以使用JavaScript版的ChiVoxSDK,方便快捷的在各类前端和Web项目中加入语音评测功能。

ChiVoxSDK v5.0在Chrome和Firefox浏览器且HTTPS环境,默认提供HTML5模式。

其中录音和播放功能,需要在HTTPS环境下,同时浏览器需要支持:

navigator.getUserMedia || navigator.webkitGetUserMedia
    || navigator.mozGetUserMedia || navigator.msGetUserMedia

才能启用HTML5模式,其他环境依赖Flash Player(v 10.0以上版本)插件。

如有必要, 可以调用:

ChiVoxSDK.Utils.support_h5()

来检测当前的环境是否支持HTML5模式。

安装

NPM安装

npm install chivox-jssdk

下载tgz包

下载地址

在线引用

<script type="text/javascript" src="//sdk.cloud.chivox.com/chivoxsdk-js/v5.0/chivox.min.js"></script>

应用示例

```javascript` import ChiVoxSDK from 'chivox-jssdk';

let sdk = new ChiVoxSDK({ appKey: Config.appKey, //mode: ChiVoxSDK.MODE.FLASH, sigurl: "/token", data: { audioUrl: "/static/ni2-hao3.mp3", serverParams: { coreType: "cn.word.score", refText: '你好', rank: 100, userId: "chivox demo", } },

onScore: (data) =&gt; {
  var resultObj = new ChiVoxSDK.CnWordScore(data);
},

onScoreError: (errorType) =&gt; {//评分失败的显示 "TIMEOUT", "NO_DATA", ErrorID
  var errorObj = ChiVoxSDK.StatusCode.get(errorType, "cn");
  alert(errorObj.feedback);
}

};

$('#info').text(ChiVoxSDK ver: ${ChiVoxSDK.VERSION}, mode: ${ChiVoxSDK.mode(sdk.options.mode)});


[更多](../examples/)


## 模块列表

[ChiVoxSDK](module-ChiVoxSDK.html)

[ChiVoxSDK/flash](module-ChiVoxSDK_flash.html)

[ChiVoxSDK/html5](module-ChiVoxSDK_html5.html)

[ChiVoxSDK/lib](module-ChiVoxSDK_lib.html)

[ChiVoxSDK/Paragraph](module-ChiVoxSDK_Paragraph.html)

[ChiVoxSDK/score](module-ChiVoxSDK_score.html)


## 许可
[MIT](https://github.com/epoberezkin/ajv/blob/master/LICENSE)