dpm12345 / nonebot_plugin_tts_gal

基于nonebot和vits的本地化角色语音合成插件
MIT License
69 stars 3 forks source link

建议:提供跨插件使用合成语音功能 #42

Closed Agnes4m closed 1 year ago

Agnes4m commented 1 year ago

如题。希望可以实现使用指令

from nonebot_plugin_tts_gal import xx

来调用这个插件合成语音ozr

dpm12345 commented 1 year ago

如题。希望可以实现使用指令

from nonebot_plugin_tts_gal import xx

来调用这个插件合成语音ozr

这个似乎不需要另外实现,刚才我试了一下下面的代码

from nonebot import on_fullmatch
from ..nonebot_plugin_tts_gal import voicHandler
from nonebot.adapters.onebot.v11 import Bot, MessageEvent

a = on_fullmatch("test")

@a.handle()
async def _(bot:Bot,msg_event:MessageEvent):
    await voicHandler(None,msg_event,"宁宁","早上好")

是可以成功合成语音的

Agnes4m commented 1 year ago

smart response