From 208f57b1d71b2209543598b8bceafab1a336725f Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 31 Jul 2024 01:19:05 +0200 Subject: [PATCH] fixed elevenlabs tts --- lollms/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lollms/app.py b/lollms/app.py index dcce264..30e08ed 100644 --- a/lollms/app.py +++ b/lollms/app.py @@ -406,7 +406,7 @@ class LollmsApplication(LoLLMsCom): if self.config.active_tts_service == "eleven_labs_tts": from lollms.services.eleven_labs_tts.lollms_eleven_labs_tts import LollmsElevenLabsTTS - self.tts = LollmsElevenLabsTTS(self, self.config.elevenlabs_tts_model_id, self.config.elevenlabs_tts_voice_id, self.config.elevenlabs_tts_key, stability=self.config.elevenlabs_tts_voice_stability, similarity_boost=self.config.elevenlabs_tts_voice_similarity_boost) + self.tts = LollmsElevenLabsTTS(self, self.config.elevenlabs_tts_model_id, self.config.elevenlabs_tts_voice_id, self.config.elevenlabs_tts_key, stability=self.config.elevenlabs_tts_voice_stability, similarity_boost=self.config.elevenlabs_tts_voice_boost) elif self.config.active_tts_service == "openai_tts": from lollms.services.open_ai_tts.lollms_openai_tts import LollmsOpenAITTS self.tts = LollmsOpenAITTS(self, self.config.openai_tts_model, self.config.openai_tts_voice, self.config.openai_tts_key) @@ -523,7 +523,7 @@ class LollmsApplication(LoLLMsCom): ASCIIColors.blue("Activating TTS service") if self.config.active_tts_service == "eleven_labs_tts": from lollms.services.eleven_labs_tts.lollms_eleven_labs_tts import LollmsElevenLabsTTS - self.tts = LollmsElevenLabsTTS(self, self.config.elevenlabs_tts_model_id, self.config.elevenlabs_tts_voice_id, self.config.elevenlabs_tts_key, stability=self.config.elevenlabs_tts_voice_stability, similarity_boost=self.config.elevenlabs_tts_voice_similarity_boost) + self.tts = LollmsElevenLabsTTS(self, self.config.elevenlabs_tts_model_id, self.config.elevenlabs_tts_voice_id, self.config.elevenlabs_tts_key, stability=self.config.elevenlabs_tts_voice_stability, similarity_boost=self.config.elevenlabs_tts_voice_boost) elif self.config.active_tts_service == "openai_tts" and (self.tts is None or self.tts.name!="openai_tts"): from lollms.services.open_ai_tts.lollms_openai_tts import LollmsOpenAITTS self.tts = LollmsOpenAITTS(self, self.config.openai_tts_model, self.config.openai_tts_voice, self.config.openai_tts_key)