Skip to main content

能让b站任何能搜到素材的角色唱歌

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-aising

✨ 能让b站任何能搜到素材的角色唱歌 ✨

license pypi python

📖 介绍

使用NeuCo v2作为后端,bot作为前端调用的ai唱歌插件,通过爬取b站视频再加上急速训练来做到只要b站上有这个角色的素材就能让这个角色唱b站上有的任何歌,插件可使用设置唱歌链接来指定后端链接达到随时更换,后端搭建可以本地也可以colab

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-aising
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-aising
pdm
pdm add nonebot-plugin-aising
poetry
poetry add nonebot-plugin-aising
conda
conda install nonebot-plugin-aising

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

plugins = ["nonebot_plugin_aising"]

后端的本地部署

在本地克隆git clone https://huggingface.co/spaces/CCYellowStar/NeuCoSVC-2这个项目,随后在这个目录pip install -r requirements.txt安装依赖
解决了各种安装依赖的问题后,就可以python app_colab.py运行了

🎉 使用

指令表

指令 权限 需要@ 范围 说明
让xxx唱xxx 群员 群聊 让b站有素材的任何角色唱b站有的歌
设置唱歌链接xxx 超级用户 群聊 设置后端运行后输出的公开链接
设置唱歌开始时间x 群员 群聊 设置唱歌开始秒数
设置唱歌音调x 群员 群聊 设置唱歌音调

效果图

image

💡 鸣谢

NeuCoSVC

  • 后端原项目

NeuCo v2

  • 后端项目

syagina

  • 巨大贡献

🦜 更新日志

2024.06.08

  • 音调自动预测改为使用手动设定
  • 增加音调调节功能

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_aising-0.1.3a1.tar.gz (17.4 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_aising-0.1.3a1-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

Supported by

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