diff --git a/README.md b/README.md index 4deeb5c..5c1daa0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ * @Author : yiyuiii * @Date : 2022-10-11 00:00:00 * @LastEditors : yiyuiii - * @LastEditTime : 2023-12-16 00:00:00 + * @LastEditTime : 2023-12-18 00:00:00 * @Description : None * @GitHub : https://github.com/yiyuiii --> @@ -136,7 +136,7 @@ https://github.com/fumiama/MoeGoe/tree/genshin ## :clipboard: 更新日志 -#### 2023.12.16 > v0.10.4 :fire: +#### 2023.12.18 > v0.10.5 :fire: - (-p 英文语气提示词) [功能添加](https://github.com/Yiyuiii/nonebot-plugin-moegoe/pull/39) by [fireinsect](https://github.com/fireinsect) - 跟随genshinvoice.top更新cnapi以及相关处理流程。 diff --git a/nonebot_plugin_moegoe/__init__.py b/nonebot_plugin_moegoe/__init__.py index 5a976c8..6a98a4d 100644 --- a/nonebot_plugin_moegoe/__init__.py +++ b/nonebot_plugin_moegoe/__init__.py @@ -225,7 +225,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, "Text prompt", fn_index=0) + stat, wav_path = gradioClients.forward(_profileDict["url"], *gradioParas, "Text prompt", paras['text_prompt'], 0, fn_index=0) if stat == 'Success': message = MessageSegment.record(Path(wav_path)) else: @@ -298,7 +298,7 @@ async def _(matcher: Matcher, matched: Tuple[Any, ...] = RegexGroup()): # 通过正则把 -p 从msg中提取出来,并进行判断 match = re.search(r"(-p|--prompt) (.+)", msg) if match: - para_dict['text_prompt'] = match.groups(1) + para_dict['text_prompt'] = match.group(2) msg = msg.replace(match.group(), "") # 并没有 -p 则把msg当作提示词 else: diff --git a/pyproject.toml b/pyproject.toml index 675e55f..810769f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nonebot-plugin-moegoe" -version = "0.10.4" +version = "0.10.5" description = "VITS AI合成原神角色语音" license = "MIT" authors = ["yiyuiii "]