fix: issue where an error occurs when invoking TTS without selecting a voice (#5046)

This commit is contained in:
takatost 2024-06-09 20:28:24 +08:00 • committed by GitHub
commit 5986841e27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View file

@ -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