mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
fix: issue where an error occurs when invoking TTS without selecting a voice (#5046)
This commit is contained in:
@@ -328,7 +328,7 @@ class ModelInstance:
|
||||
except Exception as e:
|
||||
raise e
|
||||
|
||||
def get_tts_voices(self, language: str) -> list:
|
||||
def get_tts_voices(self, language: Optional[str] = None) -> list:
|
||||
"""
|
||||
Invoke large language tts model voices
|
||||
|
||||
|
||||
Reference in New Issue
Block a user