diff --git a/app_old.py b/app_old.py index 54e7494e..1107b8ec 100644 --- a/app_old.py +++ b/app_old.py @@ -744,7 +744,7 @@ try: try: from lollms.services.xtts.lollms_xtts import LollmsXTTS if self.tts is None: - self.tts = LollmsXTTS(self, voice_samples_path=Path(__file__).parent/"voices") + self.tts = LollmsXTTS(self, voice_samples_path=Path(__file__).parent/"voices", xtts_base_url= self.config.xtts_base_url) except: return jsonify({"url": None}) @@ -1600,7 +1600,7 @@ try: def post_to_personality(self): data = request.get_json() if hasattr(self.personality.processor,'handle_request'): - return self.personality.processor.handle_request(data) + return await self.personality.processor.handle_request(data) else: return jsonify({}) diff --git a/endpoints/lollms_xtts.py b/endpoints/lollms_xtts.py index 62e52b9c..0fba47ca 100644 --- a/endpoints/lollms_xtts.py +++ b/endpoints/lollms_xtts.py @@ -70,7 +70,7 @@ async def text2Audio(request: Request): try: from lollms.services.xtts.lollms_xtts import LollmsXTTS if lollmsElfServer.tts is None: - lollmsElfServer.tts = LollmsXTTS(lollmsElfServer, voice_samples_path=Path(__file__).parent/"voices") + lollmsElfServer.tts = LollmsXTTS(lollmsElfServer, voice_samples_path=Path(__file__).parent/"voices", xtts_base_url= lollmsElfServer.config.xtts_base_url) except: return {"url": None} @@ -83,7 +83,7 @@ async def text2Audio(request: Request): try: from lollms.services.xtts.lollms_xtts import LollmsXTTS if lollmsElfServer.tts is None: - lollmsElfServer.tts = LollmsXTTS(lollmsElfServer, voice_samples_path=Path(__file__).parent/"voices") + lollmsElfServer.tts = LollmsXTTS(lollmsElfServer, voice_samples_path=Path(__file__).parent/"voices", xtts_base_url= lollmsElfServer.config.xtts_base_url) language = lollmsElfServer.config.current_language# convert_language_name() if voice!="main_voice": voices_folder = lollmsElfServer.lollms_paths.custom_voices_path diff --git a/lollms_core b/lollms_core index ab64cda2..b1682f8e 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit ab64cda254a7ed876ebdf138f124231ae725e7af +Subproject commit b1682f8ea667397c5af89320fb69e012e4878f35 diff --git a/lollms_webui.py b/lollms_webui.py index bc7c4e74..fbb811c5 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -445,7 +445,7 @@ class LOLLMSWebUI(LOLLMSElfServer): try: from lollms.services.xtts.lollms_xtts import LollmsXTTS if self.tts is None: - self.tts = LollmsXTTS(self, voice_samples_path=Path(__file__).parent.parent/"voices") + self.tts = LollmsXTTS(self, voice_samples_path=Path(__file__).parent.parent/"voices", xtts_base_url= self.config.xtts_base_url) except: self.warning(f"Personality {personality.name} request using custom voice but couldn't load XTTS") except Exception as ex: @@ -1387,7 +1387,7 @@ class LOLLMSWebUI(LOLLMSElfServer): self.process_chunk("Generating voice output",MSG_TYPE.MSG_TYPE_STEP_START,client_id=client_id) from lollms.services.xtts.lollms_xtts import LollmsXTTS if self.tts is None: - self.tts = LollmsXTTS(self, voice_samples_path=Path(__file__).parent.parent/"voices") + self.tts = LollmsXTTS(self, voice_samples_path=Path(__file__).parent.parent/"voices", xtts_base_url= self.config.xtts_base_url) language = convert_language_name(self.personality.language) self.tts.set_speaker_folder(Path(self.personality.audio_samples[0]).parent) fn = self.personality.name.lower().replace(' ',"_").replace('.','') diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index f58506db..dd510a7d 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -2182,7 +2182,7 @@ @choice-selected="onVariantChoiceSelected" @close-dialog="oncloseVariantChoiceDialog" @choice-validated="onvalidateVariantChoice" - /> + />