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 🙏

© 2026 – Pkg Stats / Ryan Hefner

audio-rouse

v0.1.8-bate

Published

数字人-语音服务

Readme

数字人-语音服务

版本信息

创建日期: 2025-06-20 | 版本号: 0.1.7 | 最后更新: 2025-07-7 | 修订记录: 0.1.8-bate

  • node开发版本是20.18.1 其他版本可自行测试

目录

功能概述

核心特性

  • ✅ 支持语音唤醒
    1. // 1 静默
    2. // 2 聆听
    3. // 3 思考
    4. // 4 说话
    5. // 5 你好
    6. // 6 再见
    7. // 7 错误
    8. // 8 退出
  • ✅ 支持语音播报tts服务

初始化

  1. 插件之前 需要引入该js 可在插件内下载该包 最优情况是在html 里面引入
  • sherpa-onnx-kws.js
  • sherpa-onnx-vad.js
  • sherpa-onnx-wasm-main-vad-kws.js
  1. 引入插件
  • npm install audio-rouse | yarn add audio-rouse | pnpm - install audio-rouse
  • import AudioRouse from 'audio-rouse/dist/audio-rouse.js'
  1. 初始化插件
  • AudioRouse.vadKwsService.init({ ... })

方法

  • setStatus(number) 设置语音状态
  • send(string) 发送信息给大模型
  • getPath(uiId: string, dataset: string = 'path') 获取元素dataset
  • getNode(uiId: string) 根据id获取元素
  • addClass(uiId: string, className: string) 添加class
  • removeClass(uiId: string, className: string) 删除class
  • getNowPage(path: string) 获取当前页面id
  • getNumVal(uiId: string) 获取元素内部的数值

初始化参数

  • outManFn: (...args: any[]) => void 输出函数
  • kwsConfig?: kwsConfig 唤醒配置
  • Digital_Human_Token?: string 数字人token
  • voiceName?: string 语音名称
  • onnxbase?: string 当前环境url
  • hlname?: string 数字人名称
  • Digital_Human_Url?: string 数字人请求url
kwsConfig 参数
  • kwsConfig { keywords?: string 唤醒词 n ǐ h ǎo b īng b īng @你好冰冰 b īng b īng z ài j iàn @冰冰再见 b ài b ài b īng b īng @拜拜冰冰 z àn t íng @暂停 t íng y ī x ià @停一下 t íng t íng t íng @停停停 }
outManFn返回参数
  • type
    1. init 初始化
    2. pageCode 页面编码
    3. status 语音指令值
    4. answer 大模型返回值
    5. volume 音量