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

ganwei-base-test

v1.0.5

Published

敢为测试

Downloads

3

Readme

ganwei-base-voice

模块简介

基线模块-语音

通过移动设备录音输入,通过网络把音频发送给讯飞服务器,讯飞服务器处理后返回识别文字,移动设备接收到识别返回,通过底层方法调用js脚本封装函数callbackVoiceXFData,再以API的方式把字符串发送给IoTCenter服务器,服务器响应并处理发送的请求功能。

开发条件

要开发此模块,需要先行下载基线模板, 地址:https://gitee.com/shend/io-tcenter-vue-temp.git(DEV分支),基线模板包含了webpack、router、API、style、components、utils等公共配置以及依赖项,详情依赖可查看package.json。

依赖框架

基于Elemen UI框架开发,要开发此模块,请预先熟悉该框架,地址:https://element.eleme.cn/#/zh-CN

开发调试

1、根据上面地址下载基础模板后,使用下面命令安装引入该模块,如果package.json中有对应依赖项,直接使用命令npm install 安装即可。

npm install ganwei-base-voice

或者需要更新到最新的包,按照下面命令顺序执行(如果提示“禁止运行脚本”,在电脑运行中输入"powerShell",然后以管理员运行,继续输入"set-ExecutionPolicy RemoteSigned",输入Y 回车即可)

npm install -g npm-check-updates  //如果安装过则直接跳过此步骤
ncu
ncu -u  //如果当前NPM指向官网,则应该手动修改版本号,跳过此步骤
npm install

2、引入成功后,运行下面命令即可打开登录页面,继而开启IoT服务以及API服务即可登录查看该页面。

npm run dev

3、在node_modules下找到引入的组件,其目录结构有src(源文件)、package(配置文件)、readme(说明文件),其中src中又包含vue、js、css、img文件,按照正常VUE组件开发即可。