This commit is contained in:
Saifeddine ALOUI 2024-05-20 15:35:58 +02:00
parent 57f6b7eea6
commit 9b0f6c4ad1
5 changed files with 180 additions and 164 deletions

@ -1 +1 @@
Subproject commit 45cc5e39b9d207b682310637089617a8b5c05b31
Subproject commit 2b4f4cf7f6bcf6e9b859d7b097d1595c921aaedb

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-72c42fda.js"></script>
<link rel="stylesheet" href="/assets/index-f34702e1.css">
<script type="module" crossorigin src="/assets/index-50d6fa6f.js"></script>
<link rel="stylesheet" href="/assets/index-08a9f7b7.css">
</head>
<body>
<div id="app"></div>

View File

@ -5733,8 +5733,24 @@ export default {
console.log("Constructing")
this.load_everything()
this.getSeviceVoices()
this.snd_input_devices = await axios.get("/get_snd_input_devices")
this.snd_output_devices = await axios.get("/get_snd_output_devices")
try{
console.log("Loading input devices list")
const response = await axios.get("/get_snd_input_devices")
console.log("response:", response)
console.log("response data : ", response.data)
this.snd_input_devices = response.data["device_names"]
}
catch{
console.log("Couldin't list input devices")
}
try{
console.log("Loading output devices list")
this.snd_output_devices = await axios.get("/get_snd_output_devices").data["device_names"]
}
catch{
console.log("Couldin't list output devices")
}
},
activated() {