diff --git a/endpoints/lollms_advanced.py b/endpoints/lollms_advanced.py index 6d4a472d..03de17ef 100644 --- a/endpoints/lollms_advanced.py +++ b/endpoints/lollms_advanced.py @@ -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.mkdir(exist_ok=True, parents=True) 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() 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") diff --git a/events/lollms_interactive_events.py b/events/lollms_interactive_events.py index 5b2c4d76..ef687211 100644 --- a/events/lollms_interactive_events.py +++ b/events/lollms_interactive_events.py @@ -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.mkdir(exist_ok=True, parents=True) 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() except Exception as ex: trace_exception(ex) diff --git a/lollms_core b/lollms_core index 397d21a3..443bdef3 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 397d21a3bef1d555ec18eff7308859ff40e78519 +Subproject commit 443bdef3ef3b9199359d84aebce2838580af66cd diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index 029f45f3..0cd5a4f3 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit 029f45f3d876a6e95107087044cf5bac16ff8880 +Subproject commit 0cd5a4f337e4eb0fda445a941d8abce8f2871d85