-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_vaani.ps1
More file actions
44 lines (38 loc) Β· 1.62 KB
/
start_vaani.ps1
File metadata and controls
44 lines (38 loc) Β· 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Vaani Voice Assistant Startup Script
# This script starts the Vaani voice assistant
Write-Host "ποΈ Starting Vaani Voice Assistant..." -ForegroundColor Cyan
Write-Host ""
# Check if Python is available
try {
$pythonVersion = python --version 2>&1
Write-Host "β
Python: $pythonVersion" -ForegroundColor Green
} catch {
Write-Host "β Python not found. Please install Python 3.8 or higher." -ForegroundColor Red
exit 1
}
# Check if .env file exists
if (Test-Path ".env") {
Write-Host "β
Configuration file (.env) found" -ForegroundColor Green
} else {
Write-Host "β οΈ Warning: .env file not found. Some features may not work." -ForegroundColor Yellow
}
# Check internet connection
try {
$connection = Test-Connection -ComputerName google.com -Count 1 -Quiet
if ($connection) {
Write-Host "β
Internet connection: Available" -ForegroundColor Green
} else {
Write-Host "β οΈ Internet connection: Offline (Limited features)" -ForegroundColor Yellow
}
} catch {
Write-Host "β οΈ Could not check internet connection" -ForegroundColor Yellow
}
Write-Host ""
Write-Host "ββββββββββββββββββββββββββββββββββββββββ" -ForegroundColor Cyan
Write-Host " Vaani - AI Voice Assistant for Farmers " -ForegroundColor Cyan
Write-Host "ββββββββββββββββββββββββββββββββββββββββ" -ForegroundColor Cyan
Write-Host ""
Write-Host "Starting in 2 seconds..." -ForegroundColor Yellow
Start-Sleep -Seconds 2
# Start Vaani
python -m vaani.core.main