Skip to main content
logo

✨ Nonebot2 Vocu 语音插件 ✨

license pypi python ruff uv

📖 介绍

nonebot2 vocu.ai 插件

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-vocu --upgrade

使用 pypi 源安装

nb plugin install nonebot-plugin-vocu --upgrade -i "https://pypi.org/simple"

使用清华源安装

nb plugin install nonebot-plugin-vocu --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
uv
uv add nonebot-plugin-vocu

安装仓库 master 分支

uv add git+https://github.com/fllesser/nonebot-plugin-vocu@master
pdm
pdm add nonebot-plugin-vocu

安装仓库 master 分支

pdm add git+https://github.com/fllesser/nonebot-plugin-vocu@master
poetry
poetry add nonebot-plugin-vocu

安装仓库 master 分支

poetry add git+https://github.com/fllesser/nonebot-plugin-vocu@master

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_vocu"]
安装必要组件 发送语音依赖 ffmpeg
# ubuntu/debian
sudo apt-get install ffmpeg
ffmpeg -version
# 其他 linux 参考: https://gitee.com/baihu433/ffmpeg
# Windows 参考: https://www.jianshu.com/p/5015a477de3c

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
vocu_api_key 是 "" 请前往 https://www.vocu.ai/ 注册账号,获取 api key
vocu_request_type 否 async api 请求方式,默认 async, 氪金用户可选择 sync
vocu_chars_limit 否 100 生成语音的字符限制
vocu_proxy 否 "" 无法直连需填,格式: "http://127.0.0.1:7890"

🎉 使用

指令表

指令 权限 需要@ 范围 说明
[角色名]说[内容] - 否 - 例如“雷军说我要开小米苏七,创死你们”
/vocu.list or /角色列表 - 否 - 帐户角色列表
/vocu.history or /历史生成[条数:int] - 否 - []表示可选,默认 20,最大值100
/vocu[历史生成的序号] - 否 - 发送指定历史生成的语音

Metadata

Release files for nonebot-plugin-vocu 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-vocu 0.3.2
File Size Uploaded Provenance Actions
nonebot_plugin_vocu-0.3.2.tar.gz 12.6 kB Without provenance Details for nonebot_plugin_vocu-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-vocu 0.3.2
File Interpreter ABI Platform Actions
nonebot_plugin_vocu-0.3.2-py3-none-any.whl Python 3 none any Details for nonebot_plugin_vocu-0.3.2-py3-none-any.whl

Total release size: 24.9 kB

Release files / nonebot_plugin_vocu-0.3.2.tar.gz

Download URL nonebot_plugin_vocu-0.3.2.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1dae9909e39b97604da159252363c7b4b20a19d4c66a6221a60c0b4351f155ee
BLAKE2b-256 checksum
How to use checksums
4d0c8c93a504764d617f3d2b7147af429346cb1efbcfff37e978254d37053d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / nonebot_plugin_vocu-0.3.2-py3-none-any.whl

Download URL nonebot_plugin_vocu-0.3.2-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90caed5f91148b190aa212fdcd6d668b6819d053dba35c77396de94c0edc7fdc
BLAKE2b-256 checksum
How to use checksums
695572dd8ee465971568c0abf7e5ff9b45a3e7e268e83b678e490aaafe7840e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for nonebot-plugin-vocu 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page