AI bug fixes and update interfaces (#6925)

* allow settings to load domain and user settings

* ensure engine is also enabled before attempting to create a new object

* add default values to stop undefined variable warnings

* enforce all models to set and return voices and languages

* enforce all models to set and return languages

* ensure speech_enabled is set by the current session
This commit is contained in:
frytimo
2024-03-24 11:37:17 -03:00
committed by GitHub
parent 93a180878e
commit 2064c33fb7
4 changed files with 20 additions and 3 deletions
+3
View File
@@ -380,6 +380,9 @@
}
}
//set the default value for speech
$speech_enabled = !empty($_SESSION['ai']['speech_enabled']['boolean']) && !empty($_SESSION['ai']['speech_engine']['text']);
//create token
$object = new token;
$token = $object->create($_SERVER['PHP_SELF']);