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

koishi-plugin-universal-tts

v1.0.4

Published

通用 Koishi 文字转语音插件,支持 OneBot/QQ官方。

Downloads

14

Readme

koishi-plugin-universal-tts

基于 textreadtts.com 在线接口的多语言文字转语音插件,支持中文、英语、法语、日语、韩语、德语等多国语言和丰富朗读者选择。自动下载 mp3 并发送音频,配合 koishi-plugin-netsilk 可实现自动 mp3 转 silk 语音。

特点

  • 支持多种语言(中文、英语、法语、日语、韩语、德语等)
  • 每种语言提供多个朗读者选择
  • 指令式选择语言与朗读者,设置对每个用户独立生效
  • 支持 mp3(如装有 netsilk 插件也支持 silk)
  • 无需任何额外依赖,仅使用 Koishi 内置 http 和 Node.js 标准库

指令

  • tts <文本>
    将文本转为语音并发送(默认 mp3,如装有 netsilk 可自动转 silk)。

  • language [语言名]
    设置语音语言,不带参数可查看所有支持语言。
    例:language chineselanguage english

  • speaker [朗读者名]
    设置朗读者,不带参数可查看当前语言全部朗读者。
    例:speaker speaker2

支持语言和朗读者(部分)

  • chinese 中文(14位朗读者)
  • english 英语(40+位朗读者,包含美、英、澳等口音)
  • french 法语 ...
  • japanese 日语 ...
  • korean 韩语 ...
  • german 德语 ...

全部朗读者详见插件内 speaker 命令。

安装与使用

  1. 安装本插件(koishi-plugin-universal-tts)。
  2. 推荐安装 koishi-plugin-netsilk 用于自动 mp3 转 silk(可选)。
  3. 启用插件,无需额外依赖。
  4. 使用上述指令即可体验多语言 TTS 能力。

技术说明

  • 使用 Koishi v4 内置的 ctx.http 实现所有网络请求。
  • 临时音频文件名生成用 Node.js crypto.randomBytes,避免任何第三方依赖。
  • 兼容 Koishi 插件生态和多平台语音发送。

注意事项

  • 朗读接口为免费公开的 textreadtts.com,稳定性以官网为准。
  • 如需 silk 格式语音,需提前安装 koishi netsilk 插件。
  • 每位用户可单独设置语言和朗读者,默认为中文 female1。

License

MIT