enhanced tool

This commit is contained in:
Saifeddine ALOUI 2024-05-05 17:28:40 +02:00
parent c370b6ecce
commit fd20ec2859
5 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 90
version: 91
binding_name: null
model_name: null
model_variant: null
@ -186,4 +186,5 @@ activate_audio_infos: true
# whisper configuration
whisper_activate: false
whisper_model: base

View File

@ -266,7 +266,7 @@ class LollmsApplication(LoLLMsCom):
self.warning(f"Couldn't load vllm")
if self.config.enable_voice_service:
if self.config.xtts_enable:
try:
from lollms.services.xtts.lollms_xtts import LollmsXTTS
voice=self.config.xtts_current_voice

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 90
version: 91
binding_name: null
model_name: null
model_variant: null
@ -186,4 +186,5 @@ activate_audio_infos: true
# whisper configuration
whisper_activate: false
whisper_model: base

View File

@ -1,5 +1,5 @@
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
version: 90
version: 91
binding_name: null
model_name: null
model_variant: null
@ -186,4 +186,5 @@ activate_audio_infos: true
# whisper configuration
whisper_activate: false
whisper_model: base

View File

@ -123,7 +123,10 @@ async def text2Audio(request: LollmsText2AudioRequest):
try:
from lollms.services.xtts.lollms_xtts import LollmsXTTS
# If the personality has a voice, then use it
if voice!="main_voice":
personality_audio:Path = lollmsElfServer.personality.personality_package_path/"audio"
if personality_audio.exists() and len([v for v in personality_audio.iterdir()])>0:
voices_folder = personality_audio
elif voice!="main_voice":
voices_folder = lollmsElfServer.lollms_paths.custom_voices_path
else:
voices_folder = Path(__file__).parent.parent.parent/"services/xtts/voices"