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-save-audio

v0.0.3

Published

保存语音到本地 发送本地的语音

Downloads

233

Readme

Koishi Plugin: save-audio

npm

保存群聊的语音到本地以及发送本地的语音到群聊

🚀 使用方法

  1. 保存语音 (保存语音 [自定义名称] [-o])

    • 别名: saveaudio
    • 功能: 保存你回复的那条消息中的语音/音频。
    • 用法:
      • 回复一条语音消息,发送 保存语音。插件将根据 filenamePattern 自动生成文件名。
      • 回复一条语音消息,发送 保存语音 我的声音。插件将使用 我的声音 作为基础文件名 (特殊字符会被替换)。
    • 选项:
      • -o--overwrite: 如果目标基础文件名已存在,强制覆盖。注意:如果存在同基础名但不同扩展名的文件,此选项也会允许保存新文件(如果目标完整文件名不存在)或覆盖目标完整文件(如果存在)。
  2. 列表语音 (列表语音)

    • 别名: listaudio
    • 功能: 显示保存在 savePath 目录下的所有已知类型的音频文件。
    • 用法: 直接发送 列表语音
    • 输出: 带编号的文件基础名列表。
  3. 发送语音 (发送语音 <文件基础名>)

    • 别名: sendaudio
    • 功能: 发送一个已保存的语音文件。
    • 用法: 发送 发送语音 文件基础名。文件基础名可以从 列表语音 命令的结果中获取。
    • 注意:
      • 在 OneBot 平台,插件会优先发送 .slk/.silk 文件。如果是 .wav 文件,会尝试将其编码为 Silk 格式发送。其他格式可能无法在 OneBot 上发送。
      • 在其他平台,会尝试直接发送原始文件。
  4. 删除语音 (删除语音 <文件基础名1[,文件基础名2...]>)

    • 别名: delaudio
    • 功能: 删除一个或多个已保存的语音文件。
    • 用法: 发送 删除语音 文件基础名1删除语音 文件基础名1,文件基础名2 (支持中英文逗号分隔)。
    • 注意: 输入的是文件的基础名 (不含扩展名)。
  5. 重命名语音 (重命名语音 <旧基础名> <新基础名>)

    • 别名: renameaudio
    • 功能: 重命名一个已保存的语音文件 (保持扩展名不变)。
    • 用法: 发送 重命名语音 旧的基础名 新的基础名
    • 注意:
      • 新基础名中的非法字符会被替换。
      • 如果新基础名已被其他语音文件使用,操作将失败。

📝 注意事项

  • koishi-plugin-silk 对于在 OneBot 平台上发送语音和正确处理 .slk/.silk 文件至关重要。请确保它已正确安装和配置。
  • 文件名中的特殊字符(如 /, \, :, *, ?, ", <, >, | 及非标准字符)会被替换为下划线 _,以确保文件系统兼容性。
  • filenamePattern 中的 {originalName} 占位符会尝试从音频来源 URL 或路径中提取文件名部分,如果失败或看起来像元数据则默认为 audio