nonebot2 onebot v1 Vocu 语音插件
Project description
📖 介绍
nonebot2 vocu.ai 插件
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-vocu --upgrade
nb plugin install nonebot-plugin-vocu --upgrade -i "https://pypi.org/simple"
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-vocu --upgrade -i "https://pypi.org/simple"
pdm
pdm add nonebot-plugin-vocu
poetry
poetry add nonebot-plugin-vocu
conda
conda install nonebot-plugin-vocu
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_vocu"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| vocu_api_key | 是 | "" | 请前往 https://www.vocu.ai/ 注册账号,获取 api key |
| vocu_request_type | 否 | async | api 请求方式,默认 async, 氪金用户可选择 sync |
| vocu_chars_limit | 否 | 100 | 生成语音的字符限制 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| [角色名]说[内容] | - | 否 | - | 例如“雷军说我要开小米苏七,创死你们” |
| vocu.list/角色列表 | - | 否 | - | 帐户角色列表 |
| vocu.history/历史生成[条数:int] | - | 否 | - | []表示可选,默认 10,最大值20 |
| vocu[历史生成的序号] | - | 否 | - | 发送指定历史生成的语音 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_vocu-0.1.1.tar.gz.
File metadata
- Download URL: nonebot_plugin_vocu-0.1.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f4e741361ae1e875be4f2a3cb85d0a5e8858609a9fc86d45fc940e24a20636f
|
|
| MD5 |
00235c218e590c653bb097021dfcfb3b
|
|
| BLAKE2b-256 |
21395a80d9be57d99d137d90fe90446baea9850181dafca21d47c5297e131c96
|
File details
Details for the file nonebot_plugin_vocu-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_vocu-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a7c97681378a4f519251cb22c5c85cfed831569b0b2f0bf8b0998461136fd13
|
|
| MD5 |
f9954181eeb48bbe66ced7f2af8f43a3
|
|
| BLAKE2b-256 |
3edb07a1a430799a51d54e6935fcdedeacba56a0803079c06215fe92a40d29c7
|