mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-13 06:35:00 +00:00
Get speech settings from category speech
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
|
||||
//add the settings object
|
||||
$settings = new settings(["domain_uuid" => $_SESSION['domain_uuid'], "user_uuid" => $_SESSION['user_uuid']]);
|
||||
$speech_enabled = $settings->get('ai', 'speech_enabled');
|
||||
$speech_enabled = $settings->get('speech', 'enabled');
|
||||
|
||||
//set additional variables
|
||||
$action = $_REQUEST["action"] ?? '';
|
||||
@@ -384,9 +384,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
//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']);
|
||||
|
||||
Reference in New Issue
Block a user