Skip to content

Commit 13bf2af

Browse files
committed
🐛 修复 API 请求参数,添加按任务数量排序功能并更新版本号至0.2.9
1 parent d9022e9 commit 13bf2af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nonebot_plugin_fishspeech_tts/fish_audio_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def _get_reference_id_by_speaker(self, speaker: str) -> str:
6666
"""
6767
request_api = "https://api.fish.audio/model"
6868
async with AsyncClient() as client:
69-
params = {"title": speaker}
69+
params = {"title": speaker, "sort_by": "task_count"}
7070
response = await client.get(
7171
request_api, params=params, headers=self.headers
7272
)

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nonebot-plugin-fishspeech-tts"
3-
version = "0.2.8"
3+
version = "0.2.9"
44
description = "小样本TTS,通过调用在线或本地api发送TTS语音"
55
authors = ["Cvandia <106718176+Cvandia@users.noreply.github.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)