From 25e024f79e2799cc9922c3df504bbb77e13a201b Mon Sep 17 00:00:00 2001
From: sanj <67624670+iodrift@users.noreply.github.com>
Date: Thu, 8 Aug 2024 16:51:31 -0700
Subject: [PATCH] Auto-update: Thu Aug  8 16:51:31 PDT 2024

---
 sijapi/routers/tts.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sijapi/routers/tts.py b/sijapi/routers/tts.py
index 8efc091..bff72fb 100644
--- a/sijapi/routers/tts.py
+++ b/sijapi/routers/tts.py
@@ -143,7 +143,7 @@ async def generate_speech(
         title = title if title else "TTS audio"
         output_path = output_dir / f"{dt_datetime.now().strftime('%Y%m%d%H%M%S')} {title}.wav"
         
-        if model == "eleven_turbo_v2" and API.EXTENSIONS.elevenlabs == True:
+        if model == "eleven_turbo_v2" and API.EXTENSIONS.elevenlabs:
             info("Using ElevenLabs.")
             audio_file_path = await elevenlabs_tts(model, text, voice, title, output_dir)
         elif API.EXTENSIONS.xtts:
@@ -185,10 +185,10 @@ async def generate_speech(
 
 
 async def get_model(voice: str = None, voice_file: UploadFile = None):
-    if (voice_file or (voice and await select_voice(voice))) and API.EXTENSIONS.xtts == True:
+    if (voice_file or (voice and await select_voice(voice))) and API.EXTENSIONS.xtts:
         return "xtts"
     
-    elif voice and await determine_voice_id(voice) and API.EXTENSIONS.elevenlabs == True:
+    elif voice and await determine_voice_id(voice) and API.EXTENSIONS.elevenlabs:
         return "eleven_turbo_v2"
     
     else: