From c22255ce259a353f8c6002ba99526741a17f0e08 Mon Sep 17 00:00:00 2001 From: yiyuiii Date: Tue, 12 Dec 2023 20:18:08 +0800 Subject: [PATCH] 0.10.3 --- README.md | 2 +- nonebot_plugin_moegoe/__init__.py | 2 +- nonebot_plugin_moegoe/profile.toml | 4 ++-- pyproject.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8fd556f..2fb9c09 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ https://github.com/fumiama/MoeGoe/tree/genshin ## :clipboard: 更新日志 -#### 2023.12.12 > v0.10.2 :fire: +#### 2023.12.12 > v0.10.3 :fire: - Fix: 优化了api优先级机制和gradio接口处理机制。 diff --git a/nonebot_plugin_moegoe/__init__.py b/nonebot_plugin_moegoe/__init__.py index eb83547..f03b464 100644 --- a/nonebot_plugin_moegoe/__init__.py +++ b/nonebot_plugin_moegoe/__init__.py @@ -224,7 +224,7 @@ async def cn_func( gradioParas = list() for k in _profileDict["gradio_paralist"]: gradioParas.append(paras[k]) - stat, wav_path = gradioClients.forward(_profileDict["url"], *gradioParas, fn_index=2) + stat, wav_path = gradioClients.forward(_profileDict["url"], *gradioParas, msg, "Text prompt", fn_index=0) if stat == 'Success': message = MessageSegment.record(Path(wav_path)) else: diff --git a/nonebot_plugin_moegoe/profile.toml b/nonebot_plugin_moegoe/profile.toml index 2d402f8..4449a93 100644 --- a/nonebot_plugin_moegoe/profile.toml +++ b/nonebot_plugin_moegoe/profile.toml @@ -1,4 +1,4 @@ -version = "0.10.2" +version = "0.10.3" priority = 5 [plugin_meta] @@ -50,7 +50,7 @@ regex = "^让(Sua|Mimiru|Arin|Yeonhwa|Yuhwa|Seonbae)(以(.+))?说(?:韩语|韩 [cnapi] priority = 6 is_gradio = true -gradio_paralist = ["msg", 'name', 'emotion', 'sdp_ratio', 'noise', 'noisew', 'length', 'lang', 'audio_component'] +gradio_paralist = ["msg", 'name', 'sdp_ratio', 'noise', 'noisew', 'length', 'lang', 'audio_component'] url = "https://v2.genshinvoice.top/" # url = "https://genshin.azurewebsites.net/api/speak?format=mp3&text=${text}&id=${id}&length=${length}&noise=${noise}&noisew=${noisew}" # 需要apikey voice_format = "mp3" diff --git a/pyproject.toml b/pyproject.toml index d52e8f8..320ca3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nonebot-plugin-moegoe" -version = "0.10.2" +version = "0.10.3" description = "VITS AI合成原神角色语音" license = "MIT" authors = ["yiyuiii "]