mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-03-10 22:43:55 +00:00
Upgraded configuration
This commit is contained in:
parent
91093246d2
commit
1a49dd9dfc
@ -1,5 +1,5 @@
|
||||
# =================== Lord Of Large Language Models Configuration file ===========================
|
||||
version: 32
|
||||
version: 33
|
||||
binding_name: null
|
||||
model_name: null
|
||||
|
||||
@ -52,10 +52,11 @@ auto_show_browser: true
|
||||
# Audio
|
||||
media_on: false
|
||||
audio_in_language: 'en-US'
|
||||
audio_out_voice: null
|
||||
auto_speak: false
|
||||
auto_read: false
|
||||
reading_voice: null
|
||||
enable_voice_service: false
|
||||
audio_out_voice: null
|
||||
current_voice: null
|
||||
audio_pitch: 1
|
||||
audio_auto_send_input: true
|
||||
audio_silenceTimer: 5000
|
||||
|
@ -50,6 +50,12 @@ class LollmsApplication(LoLLMsCom):
|
||||
self.long_term_memory = None
|
||||
|
||||
self.tts = None
|
||||
if self.config.enable_voice_service:
|
||||
try:
|
||||
from lollms.audio_gen_modules.lollms_xtts import LollmsXTTS
|
||||
self.tts = LollmsXTTS(self, voice_samples_path=lollms_paths.custom_voices_path)
|
||||
except:
|
||||
self.warning(f"Couldn't load XTTS")
|
||||
|
||||
try:
|
||||
if config.auto_update:
|
||||
@ -278,14 +284,6 @@ class LollmsApplication(LoLLMsCom):
|
||||
def mount_personality(self, id:int, callback=None):
|
||||
try:
|
||||
personality = PersonalityBuilder(self.lollms_paths, self.config, self.model, self, callback=callback).build_personality(id)
|
||||
if self.config.auto_read and len(personality.audio_samples)>0:
|
||||
try:
|
||||
from lollms.audio_gen_modules.lollms_xtts import LollmsXTTS
|
||||
if self.tts is None:
|
||||
self.tts = LollmsXTTS(self, voice_samples_path=Path(personality.audio_samples[0]).parent)
|
||||
except:
|
||||
self.warning(f"Personality {personality.name} request using custom voice but couldn't load XTTS")
|
||||
|
||||
if personality.model is not None:
|
||||
self.cond_tk = personality.model.tokenize(personality.personality_conditioning)
|
||||
self.n_cond_tk = len(self.cond_tk)
|
||||
|
@ -1,5 +1,5 @@
|
||||
# =================== Lord Of Large Language Models Configuration file ===========================
|
||||
version: 32
|
||||
version: 33
|
||||
binding_name: null
|
||||
model_name: null
|
||||
|
||||
@ -52,10 +52,11 @@ auto_show_browser: true
|
||||
# Audio
|
||||
media_on: false
|
||||
audio_in_language: 'en-US'
|
||||
audio_out_voice: null
|
||||
auto_speak: false
|
||||
auto_read: false
|
||||
reading_voice: null
|
||||
enable_voice_service: false
|
||||
audio_out_voice: null
|
||||
current_voice: null
|
||||
audio_pitch: 1
|
||||
audio_auto_send_input: true
|
||||
audio_silenceTimer: 5000
|
||||
|
Loading…
x
Reference in New Issue
Block a user