From 4de69b584c28bb4234ed530e8bb27ac393852475 Mon Sep 17 00:00:00 2001 From: dopeuni444 Date: Thu, 31 Jul 2025 13:19:20 +0400 Subject: [PATCH] Initialize global variables for speech and autopilot --- PowerShell_AI_Agent/scripts/main.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PowerShell_AI_Agent/scripts/main.ps1 b/PowerShell_AI_Agent/scripts/main.ps1 index f148feb..f55ebc1 100644 --- a/PowerShell_AI_Agent/scripts/main.ps1 +++ b/PowerShell_AI_Agent/scripts/main.ps1 @@ -19,6 +19,11 @@ if ($PSVersionTable.PSVersion.Major -lt 7) { exit 1 } +# Global variables +$script:SpeechRecognizer = $null +$script:SpeechSynthesizer = $null +$script:AutopilotEnabled = $false + # Load configuration function Load-Configuration { param([string]$ConfigPath)