浏览代码

fix: elevenlabs audio

Timothy Jaeryang Baek 4 月之前
父节点
当前提交
8b6d03e430
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/routers/audio.py

+ 1 - 1
backend/open_webui/routers/audio.py

@@ -311,7 +311,7 @@ async def speech(request: Request, user=Depends(get_verified_user)):
     elif request.app.state.config.TTS_ENGINE == "elevenlabs":
         voice_id = payload.get("voice", "")
 
-        if voice_id not in get_available_voices():
+        if voice_id not in get_available_voices(request):
             raise HTTPException(
                 status_code=400,
                 detail="Invalid voice id",