We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618b812 commit 9c0c34fCopy full SHA for 9c0c34f
nonebot_plugin_fishspeech_tts/fish_speech_api.py
@@ -46,7 +46,10 @@ async def generate_servettsrequest(
46
"""
47
48
references = []
49
- speaker_audio_path = get_speaker_audio_path(self.path_audio, speaker_name)
+ try:
50
+ speaker_audio_path = get_speaker_audio_path(self.path_audio, speaker_name)
51
+ except FileHandleException as e:
52
+ raise APIException(str(e))
53
for audio in speaker_audio_path:
54
audio_bytes = audio.read_bytes()
55
ref_text = extract_text_by_filename(audio.name)
0 commit comments