Giter Site home page Giter Site logo

genshinvoice's Introduction

GenshinVoice

QChatGPT的插件,生成原神语音,调用这个网站的接口https://v2.genshinvoice.top/

我没学过python,代码大量依赖于AI生成,难免有不合理不正确之处,不过,代码和人有一个能跑就行😋

介绍

本插件调用了genshinvoice的接口,用于将QChatGPT返回的内容转换为原神语音

速度快,免费,效果好

使用

下载

克隆此项目,放到plugins的文件夹下

git clone https://github.com/the-lazy-me/GenshinVoice.git

或下载源码压缩包,解压后放到plugins的文件夹下

打开GenshinVoice文件夹,命令行执行

pip install -r requirements.txt

速度太慢可以执行

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

前置工作

参考此教程,安装ffmpeg

教程:https://zhuanlan.zhihu.com/p/118362010

配置

打开GenshinVoice的config文件夹下的config.yml,内容如下所示

data:
  character: "派蒙_ZH"
  # 选择默认的角色,可选的参考同目录的 角色列表.txt,也可以在对话中调整
  audio_speed: 1 # 语音播放速度
  #这几个不懂不用调
  ns: 0.5
  nsw: 0.9
  sdp_radio: 0.2
  timeout: 30
  emotion: "Happy"
  weight: 0.7

# 是否默认开启语音功能,默认为False,即不开启,True为默认开启,看你喜好
voice_switch: False

指令

管理员向机器人发送下面指令,私聊直接发指令,群里@后面加指令

  • !ysvoice status 原神语音插件状态查看

  • !ysvoice on:开启原神语音

  • !ysvoice off:关闭原神语音

  • !ysvoice switch <角色名>:切换语音声线,把<角色名>替换为config文件夹下的角色列表.txt里面的角色

  • !ysvoice list:查看角色列表

genshinvoice's People

Contributors

the-lazy-me avatar

Stargazers

 avatar 杜仲 avatar white paper avatar Man Pass avatar  avatar NIUTR avatar WangCham avatar  avatar Junyan Qin avatar

Watchers

 avatar

genshinvoice's Issues

logging报错

插件 chat_voice 触发事件 NormalMessageResponded 时发生错误: name 'logging' is not defined怎么办,logging也用pip install logging安装了呀,还是报这个错误

缺少核心代码

报错host has no attribute 'XXX',经过我的分析是在这个位置。pkg.plugins包(本地)里引入一个库或者方法,但是源码里面根本就没这个包。
image

[Feat]:超过300字后分段发送

genshinvoice的免费音乐生成每次上限300字,我们应该在超过300字的地方进行切分,且保持句子的完整性
or
每句断开,逐句生成音乐最后合并

APIHos错误

[2024-03-23 12:43:01.997] C:\Users\Administrator\Desktop\ai\QChatGPT-3.1.0\QChatGPT-3.1.0\pkg\plugin\manager.py (153) - [ERROR] :
插件 GenshinVoice 触发事件 NormalMessageResponded 时发生错误: 'APIHost' object has no attribute 'send_person_message'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.