mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
fixed xtts
This commit is contained in:
parent
1b12f0d698
commit
fc8b48adf6
@ -1 +1 @@
|
||||
Subproject commit 501911c4884ce2c8cd7d174ee9f56b8a5fdb5a40
|
||||
Subproject commit e63dcb81ad726108183724b23f6553e5d28d5258
|
@ -437,8 +437,15 @@ class LOLLMSWebUI(LOLLMSElfServer):
|
||||
try:
|
||||
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
||||
if self.tts is None:
|
||||
voice=self.config.xtts_current_voice
|
||||
if voice!="main_voice":
|
||||
voices_folder = self.lollms_paths.custom_voices_path
|
||||
else:
|
||||
voices_folder = Path(__file__).parent.parent.parent/"services/xtts/voices"
|
||||
|
||||
self.tts = LollmsXTTS(
|
||||
self,
|
||||
voices_folder=voices_folder,
|
||||
voice_samples_path=Path(__file__).parent.parent/"voices",
|
||||
xtts_base_url= self.config.xtts_base_url,
|
||||
use_deep_speed=self.config.xtts_use_deepspeed,
|
||||
@ -1191,9 +1198,16 @@ class LOLLMSWebUI(LOLLMSElfServer):
|
||||
try:
|
||||
self.process_chunk("Generating voice output",MSG_TYPE.MSG_TYPE_STEP_START,client_id=client_id)
|
||||
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
||||
voice=self.config.xtts_current_voice
|
||||
if voice!="main_voice":
|
||||
voices_folder = self.lollms_paths.custom_voices_path
|
||||
else:
|
||||
voices_folder = Path(__file__).parent.parent.parent/"services/xtts/voices"
|
||||
|
||||
if self.tts is None:
|
||||
self.tts = LollmsXTTS(
|
||||
self,
|
||||
voices_folder=voices_folder,
|
||||
voice_samples_path=Path(__file__).parent.parent/"voices",
|
||||
xtts_base_url= self.config.xtts_base_url,
|
||||
use_deep_speed=self.config.xtts_use_deepspeed,
|
||||
|
Loading…
Reference in New Issue
Block a user