mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-24 14:36:39 +00:00
interactive upgrade
This commit is contained in:
parent
d9dae6b2e4
commit
2a8863963b
@ -471,7 +471,24 @@ def start_recording(data:Identification):
|
|||||||
lollmsElfServer.rec_output_folder = lollmsElfServer.lollms_paths.personal_outputs_path/"audio_rec"
|
lollmsElfServer.rec_output_folder = lollmsElfServer.lollms_paths.personal_outputs_path/"audio_rec"
|
||||||
lollmsElfServer.rec_output_folder.mkdir(exist_ok=True, parents=True)
|
lollmsElfServer.rec_output_folder.mkdir(exist_ok=True, parents=True)
|
||||||
lollmsElfServer.summoned = False
|
lollmsElfServer.summoned = False
|
||||||
lollmsElfServer.audio_cap = AudioRecorder(client.discussion.discussion_folder/"audio"/"rt.wav", callback=lollmsElfServer.audio_callback,lollmsCom=lollmsElfServer, transcribe=True)
|
lollmsElfServer.audio_cap = AudioRecorder(
|
||||||
|
lollmsElfServer,
|
||||||
|
lollmsElfServer.sio,
|
||||||
|
lollmsElfServer.personality,
|
||||||
|
threshold=1000,
|
||||||
|
silence_duration=2,
|
||||||
|
sound_threshold_percentage=10,
|
||||||
|
gain=1.0,
|
||||||
|
rate=44100,
|
||||||
|
channels=1,
|
||||||
|
buffer_size=10,
|
||||||
|
model="small.en",
|
||||||
|
snd_device=None,
|
||||||
|
logs_folder="logs",
|
||||||
|
voice=None,
|
||||||
|
block_while_talking=True,
|
||||||
|
context_size=4096
|
||||||
|
)
|
||||||
lollmsElfServer.audio_cap.start_recording()
|
lollmsElfServer.audio_cap.start_recording()
|
||||||
except:
|
except:
|
||||||
lollmsElfServer.InfoMessage("Couldn't load media library.\nYou will not be able to perform any of the media linked operations. please verify the logs and install any required installations")
|
lollmsElfServer.InfoMessage("Couldn't load media library.\nYou will not be able to perform any of the media linked operations. please verify the logs and install any required installations")
|
||||||
|
@ -69,7 +69,24 @@ def add_events(sio:socketio):
|
|||||||
lollmsElfServer.rec_output_folder = lollmsElfServer.lollms_paths.personal_outputs_path/"audio_rec"
|
lollmsElfServer.rec_output_folder = lollmsElfServer.lollms_paths.personal_outputs_path/"audio_rec"
|
||||||
lollmsElfServer.rec_output_folder.mkdir(exist_ok=True, parents=True)
|
lollmsElfServer.rec_output_folder.mkdir(exist_ok=True, parents=True)
|
||||||
lollmsElfServer.summoned = False
|
lollmsElfServer.summoned = False
|
||||||
lollmsElfServer.audio_cap = AudioRecorder( client.discussion.discussion_folder/"audio"/"rt.wav", sio, callback=lollmsElfServer.audio_callback,lollmsCom=lollmsElfServer, transcribe=True)
|
lollmsElfServer.audio_cap = AudioRecorder(
|
||||||
|
lollmsElfServer,
|
||||||
|
lollmsElfServer.sio,
|
||||||
|
lollmsElfServer.personality,
|
||||||
|
threshold=1000,
|
||||||
|
silence_duration=2,
|
||||||
|
sound_threshold_percentage=10,
|
||||||
|
gain=1.0,
|
||||||
|
rate=44100,
|
||||||
|
channels=1,
|
||||||
|
buffer_size=10,
|
||||||
|
model="small.en",
|
||||||
|
snd_device=None,
|
||||||
|
logs_folder="logs",
|
||||||
|
voice=None,
|
||||||
|
block_while_talking=True,
|
||||||
|
context_size=4096
|
||||||
|
)
|
||||||
lollmsElfServer.audio_cap.start_recording()
|
lollmsElfServer.audio_cap.start_recording()
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
trace_exception(ex)
|
trace_exception(ex)
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 397d21a3bef1d555ec18eff7308859ff40e78519
|
Subproject commit 443bdef3ef3b9199359d84aebce2838580af66cd
|
@ -1 +1 @@
|
|||||||
Subproject commit 029f45f3d876a6e95107087044cf5bac16ff8880
|
Subproject commit 0cd5a4f337e4eb0fda445a941d8abce8f2871d85
|
Loading…
Reference in New Issue
Block a user