mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-06 08:18:53 +00:00
fix: elevenlabs audio
This commit is contained in:
parent
3c74ce3653
commit
8b6d03e430
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue