A nonebot plugin for facebook's audiocraft
Project description
nonebot-plugin-audiocraft
介绍
- 本插件适配Facebook开源的AI作曲模型,在nonebot框架下调用已经部署好的模型后端服务器API进行AI作曲
- 本插件需要配合部署好的audiocraft进行使用
安装
-
手动安装
git clone https://github.com/Alpaca4610/nonebot_plugin_audiocraft.git
下载完成后在bot项目的pyproject.toml文件手动添加插件:
plugin_dirs = ["xxxxxx","xxxxxx",......,"下载完成的插件路径/nonebot-plugin-audiocraft"]
-
使用 pip
pip install nonebot-plugin-audiocraft
后端服务器部署
参考官方仓库部署好gradio后端,获得后端网址。(coblab上部署的可以开启gradio的外链分享)
使用方法
- 由于最近tx风控严重,go-cqhttp面临重启后可能掉账号的风险,所以插件使用给机器人发送消息配置后端服务器配置的方法。
- 每次重启机器人后,使用 %%后端服务器地址 绑定audiocraft后端服务器。
- 绑定后端服务器后,使用 AI作曲+乐曲的英文描述 即可触发AI作曲。
- AI作曲的参数(如模型、时长)等通过代码进行修改,代码中有注释说明。
效果
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
Built Distribution
Close
Hashes for nonebot_plugin_audiocraft-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 023dd69d52e752b4354e04807f61e82af44bb9810a0f2970a0a4b328a707cffe |
|
MD5 | a726764b479a10facf0a9f6775e9e88b |
|
BLAKE2b-256 | b6d5d772dda6d32783ca8744c49b3092142d9d7b47b16da25905f26c03752657 |
Close
Hashes for nonebot_plugin_audiocraft-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93a2f77c8376741008db7130b17a0fc501d8266802b27ca3ad47f0e0a1d87a63 |
|
MD5 | f2cc62b68a730bab1079956ebfbda771 |
|
BLAKE2b-256 | 15f0357de844ef67a261274a36f130f6822e8bceb900ce43b4f059b2d12e92a0 |