Merge branch 'gsv-tts-selfhost' of https://github.com/Zhalslar/AstrBot_Zhalslar into gsv-tts-selfhost
This commit is contained in:
@@ -107,7 +107,7 @@ class ProviderGSVTTS(TTSProvider):
|
|||||||
|
|
||||||
async def get_audio(self, text: str) -> str:
|
async def get_audio(self, text: str) -> str:
|
||||||
"""实现 TTS 核心方法,根据文本内容自动切换情绪"""
|
"""实现 TTS 核心方法,根据文本内容自动切换情绪"""
|
||||||
if not text:
|
if not text.strip():
|
||||||
raise ValueError("[GSV TTS] TTS 文本不能为空")
|
raise ValueError("[GSV TTS] TTS 文本不能为空")
|
||||||
|
|
||||||
endpoint = f"{self.api_base}/tts"
|
endpoint = f"{self.api_base}/tts"
|
||||||
|
|||||||
Reference in New Issue
Block a user