fixed voice problem

This commit is contained in:
Saifeddine ALOUI 2023-12-28 23:12:26 +01:00
parent 864416925d
commit f0e64bc4ff
5 changed files with 10 additions and 8 deletions

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"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title> <title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-553d66ea.js"></script> <script type="module" crossorigin src="/assets/index-21d0d4ec.js"></script>
<link rel="stylesheet" href="/assets/index-a73bb544.css"> <link rel="stylesheet" href="/assets/index-f7641d38.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -748,7 +748,7 @@
<td> <td>
<div class="flex flex-row"> <div class="flex flex-row">
<select v-model="current_voice" @change="settingsChanged=true" :disabled="!enable_voice_service"> <select v-model="current_voice" @change="settingsChanged=true" :disabled="!enable_voice_service">
<option v-for="voice in voices" :key="voice.id" :value="voice.id"> <option v-for="voice in voices" :key="voice" :value="voice">
{{ voice }} {{ voice }}
</option> </option>
</select> </select>
@ -3986,10 +3986,12 @@ export default {
}, },
set(value) { set(value) {
// You should not set the value directly here; use the updateSetting method instead // You should not set the value directly here; use the updateSetting method instead
if(value=="main_voice"){ if(value=="main_voice" || value===undefined){
console.log("Current voice set to None")
this.$store.state.config.current_voice = null this.$store.state.config.current_voice = null
} }
else{ else{
console.log("Current voice set to ",value)
this.$store.state.config.current_voice = value this.$store.state.config.current_voice = value
} }
}, },

@ -1 +1 @@
Subproject commit 0fc7d955702e842c69b82ffeac09fd4b9e342a63 Subproject commit 28161e1dcc65633feea8bfbee6a2dc0d752a8dae