Skip to main content
NoneBotPluginLogo

NoneBotPluginText

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后端,获得后端网址。(colab上部署的可以开启gradio的外链分享)

使用方法

  • 由于最近tx风控严重,go-cqhttp面临重启后可能掉账号的风险,所以插件使用给机器人发送消息配置后端服务器配置的方法。
  • 每次重启机器人后,使用 %%后端服务器地址 绑定audiocraft后端服务器。
  • 绑定后端服务器后,使用 AI作曲+乐曲的英文描述 即可触发AI作曲。
  • AI作曲的参数(如模型、时长)等通过代码进行修改,代码中有注释说明。

效果

Alt Alt

Release files for nonebot-plugin-audiocraft 0.0.5

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-audiocraft 0.0.5
File Size Uploaded
nonebot_plugin_audiocraft-0.0.5.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-audiocraft 0.0.5
File Interpreter ABI Platform
nonebot_plugin_audiocraft-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / nonebot_plugin_audiocraft-0.0.5.tar.gz

Download URL nonebot_plugin_audiocraft-0.0.5.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c786b20dc427d8c523dd5bec9ad3968c3074b9393d2a714a74b7b907437ceb3b
BLAKE2b-256 checksum
How to use checksums
1f38dcba9732534dcc7aae5d2d3ffcbefc01cba16aaa9f3b9dbb83891d2d58c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.6 Darwin/22.5.0

Release files / nonebot_plugin_audiocraft-0.0.5-py3-none-any.whl

Download URL nonebot_plugin_audiocraft-0.0.5-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
009ee5b2dfbf2af43a62b6dbae70b4bbf68d6fd4e026a2f84e50bef8f5aa7cc0
BLAKE2b-256 checksum
How to use checksums
343024d71d628d1001a02b00e35b957a6153463cfa65a9d632ee1ddcc85c664b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.6 Darwin/22.5.0

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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