This commit is contained in:
Saifeddine ALOUI 2024-05-23 23:48:37 +02:00
parent 5f6bd16e2b
commit 5d411f9bc3
6 changed files with 19 additions and 15 deletions

View File

@ -74,13 +74,13 @@ def add_events(sio:socketio):
lollmsElfServer.sio,
lollmsElfServer.personality,
client=client,
threshold=1000,
silence_duration=2,
sound_threshold_percentage=10,
gain=1.0,
rate=44100,
channels=1,
buffer_size=10,
threshold=lollmsElfServer.config.stt_listening_threshold,
silence_duration=lollmsElfServer.config.stt_silence_duration,
sound_threshold_percentage=lollmsElfServer.config.stt_sound_threshold_percentage,
gain=lollmsElfServer.config.stt_gain,
rate=lollmsElfServer.config.stt_rate,
channels=lollmsElfServer.config.stt_channels,
buffer_size=lollmsElfServer.config.stt_buffer_size,
model=lollmsElfServer.config.whisper_model,
snd_input_device=lollmsElfServer.config.stt_input_device,
snd_output_device=lollmsElfServer.config.tts_output_device,

@ -1 +1 @@
Subproject commit 4734e5f359d6cf480ac62bec53c2e21022219bc8
Subproject commit 6afd883f1ba2d4feeb4e94acdb138ef2a3079a98

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-287dcde0.js"></script>
<link rel="stylesheet" href="/assets/index-95a62c9e.css">
<script type="module" crossorigin src="/assets/index-2ebea018.js"></script>
<link rel="stylesheet" href="/assets/index-3615956c.css">
</head>
<body>
<div id="app"></div>

View File

@ -3589,7 +3589,9 @@ export default {
},
defaultModelImgPlaceholder:defaultModelImgPlaceholder,
snd_input_devices: [],
snd_input_devices_indexes: [],
snd_output_devices: [],
snd_output_devices_indexes: [],
voices: [],
voice_languages:{
"Arabic": "ar",
@ -5859,6 +5861,7 @@ export default {
console.log("Loading input devices list")
const response = await axios.get("/get_snd_input_devices")
this.snd_input_devices = response.data["device_names"]
this.snd_input_devices_indexes = response.data["device_indexes"]
}
catch{
console.log("Couldin't list input devices")
@ -5867,6 +5870,7 @@ export default {
console.log("Loading output devices list")
const response = await axios.get("/get_snd_output_devices")
this.snd_output_devices = response.data["device_names"]
this.snd_output_devices_indexes = response.data["device_indexes"]
}
catch{
console.log("Couldin't list output devices")