소스 검색

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",