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