This commit is contained in:
Saifeddine ALOUI 2024-05-25 01:41:28 +02:00
parent 61d9f335c6
commit dcc44ebf04
8 changed files with 14 additions and 12 deletions

View File

@ -89,7 +89,7 @@ active_ttm_service: "None" # musicgen (offline)
# -------------------- Services --------------------------
# ***************** STT *****************
stt_input_device: null
stt_input_device: 0
# TTS service
@ -118,7 +118,7 @@ whisper_model: base
# ***************** TTS *****************
tts_output_device: null
tts_output_device: 0
# Voice service
xtts_enable: false

View File

@ -72,6 +72,8 @@ def add_events(sio:socketio):
lollmsElfServer.InfoMessage("TTS is not ready yet.\nPlease wait")
return {"status":False,"error":"TTS not ready"}
if lollmsElfServer.rt_com:
return {"status":False,"error":"Already running"}
try:
from lollms.media import RTCom

@ -1 +1 @@
Subproject commit 558da00d55d80bd681098596330d05c7b853f4af
Subproject commit b8ae9beef0d700829045d90401c43847cc5d3e1b

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-d0af202a.js"></script>
<link rel="stylesheet" href="/assets/index-698784c6.css">
<script type="module" crossorigin src="/assets/index-8093de2b.js"></script>
<link rel="stylesheet" href="/assets/index-c125621e.css">
</head>
<body>
<div id="app"></div>

View File

@ -932,7 +932,6 @@ export default {
feather.replace()
}
)
this.$store.state.is_rt_on = true;
},
stopRTCom(){
socket.emit('stop_audio_stream', ()=>{this.isAudioActive = true;});

View File

@ -1350,7 +1350,7 @@
@change="settingsChanged=true"
class="w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
<option v-for="snd_input_device in snd_input_devices" :key="snd_input_device" :value="snd_input_device">
<option v-for="(snd_input_device, index) in snd_input_devices" :key="snd_input_device" :value="snd_input_devices_indexes[index]">
{{ snd_input_device }}
</option>
</select>
@ -1368,7 +1368,7 @@
@change="settingsChanged=true"
class="w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
>
<option v-for="tts_output_device in snd_output_devices" :key="tts_output_device" :value="tts_output_device">
<option v-for="(tts_output_device, index) in snd_output_devices" :key="tts_output_device" :value="snd_output_devices_indexes[index]">
{{ tts_output_device }}
</option>
</select>
@ -5649,6 +5649,7 @@ export default {
pers=pers.personality;
// Make a POST request to the '/get_personality_config' endpoint using Axios
axios.post('/get_personality_config', {
client_id:this.$store.state.client_id,
category: pers.category,
name: pers.folder,
})