diff --git a/app/recordings/recordings.php b/app/recordings/recordings.php index daf22c6c2a..38df040ffa 100644 --- a/app/recordings/recordings.php +++ b/app/recordings/recordings.php @@ -37,6 +37,10 @@ $language = new text; $text = $language->get(); +//add the settings object + $settings = new settings(["domain_uuid" => $SESSION['domain_uuid']]); + $speech_enabled = $settings->get('ai', 'speech_enabled'); + //set additional variables $action = $_REQUEST["action"] ?? ''; $search = $_REQUEST["search"] ?? ''; @@ -380,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']); @@ -684,4 +685,4 @@ fclose($fp); } -?> \ No newline at end of file +?>