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

koishi-plugin-huozi-generator

v0.1.2

Published

/*otto活字印刷*/活字乱刷,嘛,但是好像奇奇怪怪的蛮好玩唔[点我查看使用方法](https://www.npmjs.com/package/koishi-plugin-huozi-generator)

Downloads

220

Readme

koishi-plugin-huozi-generator

npm huozi-generator 是一个用于 Koishi 框架的 otto 活字印刷插件,能够根据输入的文本生成音频文件,并返回可通过 HTTP/HTTPS 访问的 URL 地址。

配置项说明

  • waitTip_Switch:是否返回等待提示。可以为 false 不返回提示,或提供一个字符串作为提示内容。
  • apiEndpoint:音频生成 API 的地址,默认为 http://127.0.0.1:8989/api/make
  • default_inYsddMode:是否使用原声大碟模式,默认值为 false
  • default_norm:是否统一音频的音量,默认值为 false
  • default_reverse:是否倒放生成的音频,默认值为 false
  • default_speedMult:音频速度倍数,范围为 0.5 到 2.0,默认值为 1.0
  • default_pitchMult:音频音调倍数,范围为 0.5 到 2.0,默认值为 1.0
  • loggerinfo:是否启用日志调试输出,默认值为 false

使用方法

在 Koishi 插件市场里安装后,根据本插件的说明文档引导,部署后端,填入对应的 apiEndpoint 即可使用啦~

命令使用方法

在聊天中可以使用命令 huozi-generator <content:text> 来生成音频文件,其中 <content:text> 是要生成音频的文本内容。 示例:

/huozi-generator 你好啊

你也可以使用别名 活字乱刷 来调用此命令:

/活字乱刷 你好啊

此外,还可以通过添加各种选项来调整生成音频的参数:

  • -y--ysddMode:匹配到特定文字时使用原声大碟。
  • -n--norm:统一音频的音量。
  • -r--reverse:倒放生成的音频。
  • -s <speedMult>--speedMult <speedMult>:语音速度,范围 0.5 到 2.0,默认值为 1.0。
  • -p <pitchMult>--pitchMult <pitchMult>:语音音调,范围 0.5 到 2.0,默认值为 1.0。 示例:
  • 倒放音频:
/活字乱刷 -r 你好啊
  • 调整音频速度为 1.5 倍:
/活字乱刷 -s 1.5 你好啊
  • 使用原声大碟模式并统一音量:
/活字乱刷 -y -n 你好啊

调试日志

如果需要启用调试日志,可以在配置中将 loggerinfo 设置为 true,以便查看详细的日志信息。

项目链接

如何部署后端

请参阅 HUOZI_koi 后端部署项目 了解如何部署后端服务。