This commit is contained in:
Timothy Jaeryang Baek committed 2026-05-31 14:59:28 -07:00
1 parent 34b8844ccf
commit f16b5c4460
3 files changed
+18 -12

No files matched your search

+2
View File
@@ -389,6 +389,8 @@ async def _write_tts_cache(
async def _tts_openai(request, payload, file_path, file_body_path, user):
"""Generate speech via an OpenAI-compatible TTS endpoint."""
payload['model'] = request.app.state.config.TTS_MODEL
if not payload.get('voice'):
payload['voice'] = request.app.state.config.TTS_VOICE
payload = {**payload, **(request.app.state.config.TTS_OPENAI_PARAMS or {})}
headers = {