mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 08:48:19 +00:00
enhanced tool
This commit is contained in:
parent
c370b6ecce
commit
fd20ec2859
@ -1,5 +1,5 @@
|
|||||||
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
||||||
version: 90
|
version: 91
|
||||||
binding_name: null
|
binding_name: null
|
||||||
model_name: null
|
model_name: null
|
||||||
model_variant: null
|
model_variant: null
|
||||||
@ -186,4 +186,5 @@ activate_audio_infos: true
|
|||||||
|
|
||||||
|
|
||||||
# whisper configuration
|
# whisper configuration
|
||||||
|
whisper_activate: false
|
||||||
whisper_model: base
|
whisper_model: base
|
@ -266,7 +266,7 @@ class LollmsApplication(LoLLMsCom):
|
|||||||
self.warning(f"Couldn't load vllm")
|
self.warning(f"Couldn't load vllm")
|
||||||
|
|
||||||
|
|
||||||
if self.config.enable_voice_service:
|
if self.config.xtts_enable:
|
||||||
try:
|
try:
|
||||||
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
||||||
voice=self.config.xtts_current_voice
|
voice=self.config.xtts_current_voice
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
||||||
version: 90
|
version: 91
|
||||||
binding_name: null
|
binding_name: null
|
||||||
model_name: null
|
model_name: null
|
||||||
model_variant: null
|
model_variant: null
|
||||||
@ -186,4 +186,5 @@ activate_audio_infos: true
|
|||||||
|
|
||||||
|
|
||||||
# whisper configuration
|
# whisper configuration
|
||||||
|
whisper_activate: false
|
||||||
whisper_model: base
|
whisper_model: base
|
@ -1,5 +1,5 @@
|
|||||||
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
||||||
version: 90
|
version: 91
|
||||||
binding_name: null
|
binding_name: null
|
||||||
model_name: null
|
model_name: null
|
||||||
model_variant: null
|
model_variant: null
|
||||||
@ -186,4 +186,5 @@ activate_audio_infos: true
|
|||||||
|
|
||||||
|
|
||||||
# whisper configuration
|
# whisper configuration
|
||||||
|
whisper_activate: false
|
||||||
whisper_model: base
|
whisper_model: base
|
@ -123,7 +123,10 @@ async def text2Audio(request: LollmsText2AudioRequest):
|
|||||||
try:
|
try:
|
||||||
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
||||||
# If the personality has a voice, then use it
|
# 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
|
voices_folder = lollmsElfServer.lollms_paths.custom_voices_path
|
||||||
else:
|
else:
|
||||||
voices_folder = Path(__file__).parent.parent.parent/"services/xtts/voices"
|
voices_folder = Path(__file__).parent.parent.parent/"services/xtts/voices"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user