We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f42b89 + 4a3deb7 commit 748f25fCopy full SHA for 748f25f
nonebot_plugin_fishspeech_tts/fish_audio_api.py
@@ -196,12 +196,10 @@ def get_speaker_list(self) -> list[str]:
196
"""
197
获取语音角色列表
198
199
- try:
200
- if is_reference_id_first:
201
- return_list = ["请查看官网了解更多: https://fish.audio/zh-CN/"]
+ return_list = ["请查看官网了解更多: https://fish.audio/zh-CN/"]
+ if is_reference_id_first:
+ try:
202
return_list.extend(get_path_speaker_list(self.path_audio))
203
- return return_list
204
- else:
205
- return get_path_speaker_list(self.path_audio)
206
- except FileHandleException as e:
207
- raise APIException(str(e))
+ except FileHandleException:
+ logger.warning("音频文件夹不存在或无法读取")
+ return return_list
0 commit comments