[Feat][Qwen3-TTS] Better Qwen3-TTS online serving demo (#1857)
Signed-off-by: linyueqian <linyueqian@outlook.com>
This commit is contained in:
1 parent
c6b7597126
commit
8b102bdac1
5 files changed
+605
-474
No files matched your search
@@ -39,7 +39,9 @@ def fetch_voices(api_base: str) -> list[str]:
|
||||
)
|
||||
if resp.status_code == 200:
|
||||
data = resp.json()
|
||||
return data.get("voices", ["Vivian", "Ryan"])
|
||||
voices = data.get("voices") or []
|
||||
if voices:
|
||||
return voices
|
||||
except Exception:
|
||||
pass
|
||||
return ["Vivian", "Ryan"]
|
||||
|
||||
Reference in new issue
Block a user