mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-09-05 23:56:37 +08:00
feat: 添加 TTS 语音名称常量并更新 TTS 服务逻辑
- 在 constants.py 中新增 TTS_VOICE_NAMES 列表,包含多个语音名称。 - 更新 tts_service.py 中的语音配置逻辑,确保使用请求中的语音名称(如果有效),否则回退到默认配置。
This commit is contained in:
+12
-1
@@ -76,4 +76,15 @@ DEFAULT_SAFETY_SETTINGS = [
|
||||
{"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", "threshold": "OFF"},
|
||||
{"category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "OFF"},
|
||||
{"category": "HARM_CATEGORY_CIVIC_INTEGRITY", "threshold": "BLOCK_NONE"},
|
||||
]
|
||||
]
|
||||
|
||||
TTS_VOICE_NAMES = [
|
||||
"Zephyr", "Puck", "Charon", "Kore",
|
||||
"Fenrir", "Leda", "Orus", "Aoede",
|
||||
"Callirhoe", "Autonoe", "Enceladus", "Iapetus",
|
||||
"Umbriel", "Algieba", "Despina", "Erinome",
|
||||
"Algenib", "Rasalgethi", "Laomedeia", "Achernar",
|
||||
"Alnilam", "Schedar", "Gacrux", "Pulcherrima",
|
||||
"Achird", "Zubenelgenubi", "Vindemiatrix", "Sadachbia",
|
||||
"Sadaltager", "Sulafat"
|
||||
]
|
||||
Reference in New Issue
Block a user