Skip to main content

nonebot2 onebot v1 Vocu 语音插件

Project description

NoneBotPluginLogo

✨ nonebot-plugin-vocu ✨

license pypi python

📖 介绍

这里是插件的详细介绍部分

💿 安装

使用 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_vocu-0.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_vocu-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_vocu-0.1.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_vocu-0.1.0.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

Hashes for nonebot_plugin_vocu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aff330b7e78b79c36f879ab31b5b8a05c12699cc1b4d1a8fe6af90562f4827e9
MD5 0abfb2a7fb9fe2bee74eeef0c81333d9
BLAKE2b-256 6a66d92c3bf26497df87e0bf1fb90f97fe534655e32974e057d9ea245f53eb36

See more details on using hashes here.

File details

Details for the file nonebot_plugin_vocu-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_vocu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d078b22c10b78d1083f5a7040b244ebed34a969410fd4eafa7fd6e58babb082
MD5 e2c786b2b0d305bf05ab27c479c47709
BLAKE2b-256 de83ada2f3f9851aecbde911ed0a5d2bbb35d390f416a5bd8197de74f0ab7ff9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page