From 8b6d03e430fd0445d413a3f5438e782a71b4053b Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 26 Dec 2024 12:54:31 -0800 Subject: [PATCH] fix: elevenlabs audio --- backend/open_webui/routers/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/routers/audio.py b/backend/open_webui/routers/audio.py index 46ee8beab..c1b15772b 100644 --- a/backend/open_webui/routers/audio.py +++ b/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",