Skip to content

Commit

Permalink
Merge pull request #43 from Yiyuiii/beta
Browse files Browse the repository at this point in the history
0.10.5
  • Loading branch information
Yiyuiii authored Dec 18, 2023
2 parents e38b361 + 72a80c3 commit 1553921
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down Expand Up @@ -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以及相关处理流程。
Expand Down
4 changes: 2 additions & 2 deletions nonebot_plugin_moegoe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down

0 comments on commit 1553921

Please sign in to comment.