mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-06 04:38:21 +01:00
Add initialization of audio module key in extension settings.
This commit is contained in:
parent
25daa61e83
commit
58b33240a2
@ -48,6 +48,9 @@ const defaultSettings = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadSettings() {
|
function loadSettings() {
|
||||||
|
if (extension_settings.audio === undefined)
|
||||||
|
extension_settings.audio = {};
|
||||||
|
|
||||||
if (Object.keys(extension_settings.audio).length === 0) {
|
if (Object.keys(extension_settings.audio).length === 0) {
|
||||||
Object.assign(extension_settings.audio, defaultSettings)
|
Object.assign(extension_settings.audio, defaultSettings)
|
||||||
}
|
}
|
||||||
|
@ -566,7 +566,7 @@ class CoquiTtsProvider {
|
|||||||
if (apiResult["status"] == "done") {
|
if (apiResult["status"] == "done") {
|
||||||
$("#coqui_api_model_install_status").text("Model installed and ready to use!");
|
$("#coqui_api_model_install_status").text("Model installed and ready to use!");
|
||||||
$("#coqui_api_model_install_button").hide();
|
$("#coqui_api_model_install_button").hide();
|
||||||
onModelNameChange_pointer();
|
onModelNameChange_pointer(); // TODO: error ?
|
||||||
}
|
}
|
||||||
|
|
||||||
if (apiResult["status"] == "downloading") {
|
if (apiResult["status"] == "downloading") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user