Your Omnipotent Voice-Controlled AI Desktop Companion
Diana is an always-on, voice-activated AI assistant that lives on your desktop.
She can hear you, talk back, think out loud, and control your entire computer with 67 powerful tools β from opening apps and sending messages to searching the web, managing files, and remembering things across sessions.
"Hey Diana, open Chrome and search for the latest AI news"
"Hey Diana, what's the weather in New York?"
"Hey Diana, set a timer for 5 minutes"
"Hey Diana, remember that my exam is on May 5th"
Feature
Description
ποΈ Wake Word Detection
Say "Hey Diana" to activate. She sleeps quietly until called.
π£οΈ Real-Time Voice Chat
Full-duplex bidirectional audio streaming via Google Gemini Multimodal Live API
π Floating Thought Bubbles
See Diana's thinking process in real-time on your screen
π₯οΈ Full OS Control
Open/close apps, type, click, keyboard shortcuts, screenshots
π Web Intelligence
Search the web, check weather, open YouTube, read webpages
π File Management
Find, move, copy, delete, rename, zip/unzip files and folders
π§ Persistent Memory
Remembers things across sessions β meetings, preferences, facts
β° Timers & Notifications
Set countdown timers with Windows toast notifications
π System Power
Volume, brightness, lock, sleep, shutdown, restart your PC
π System Monitoring
CPU, RAM, battery, disk, IP address, running processes
π Translation
Translate text between languages instantly
π± Mobile Control
Trigger Android Tasker webhooks for cross-device automation
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β main.py β
β (Orchestrator + Persona) β
β ββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β Persona β β 67 Tool β β Dispatcher β β
β β Config β β Declarationsβ β Router β β
β ββββββββββββ ββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β
βββββββββββββββΌββββββββββββββ
βΌ βΌ βΌ
ββββββββββββββββ ββββββββββββ ββββββββββββββββ
βvoice_engine.pyβ βdiana_ui.pyβ βmcp_controllerβ
β β β β β .py β
β β’ Wake Word β β β’ Avatar β β β’ 67 Tools β
β β’ Audio I/O β β β’ Thought β β β’ System β
β β’ WebSocket β β Bubbles β β β’ Web β
β β’ Tool Exec β β β’ Drag β β β’ Files β
β β β β β β’ Memory β
ββββββββ¬ββββββββ βββββββββββββ ββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Google Gemini 2.0 / 2.5 Flash β
β Live Audio API (WebSocket) β
β (WebSocket) β
ββββββββββββββββββββββββ
Python 3.12+ installed
Windows 10/11
Microphone connected
Google Gemini API Key from Google AI Studio
# 1. Clone the repository
git clone https://github.com/VAIBHAV7848/Diana.git
cd Diana
# 2. Install dependencies
pip install -r requirements.txt
# 3. Create your .env file
echo GEMINI_API_KEY=your_api_key_here > .env
# 4. Run Diana
python main.py
Diana's avatar overlay will appear in the bottom-right corner of your screen
She'll calibrate your microphone (1 second)
You'll see: "Say 'Hey Diana' to activate"
Say "Hey Diana" β she wakes up and listens
Give her any command β she responds with voice and actions
After 6 seconds of silence β she goes back to sleep
Environment Variables (.env)
GEMINI_API_KEY = your_gemini_api_key_here
TASKER_WEBHOOK_URL = http://your-phone-ip:port # Optional: for Android control
Diana needs to know your actual file paths. Edit the DIANA_PERSONA section in main.py:
IMPORTANT FILE PATHS ON THIS PC :
- Desktop : C :\\ Users \\ YOUR_USERNAME \\ Desktop
- Documents : C :\\ Users \\ YOUR_USERNAME \\ Documents
- Downloads : C :\\ Users \\ YOUR_USERNAME \\ Downloads
Tip: If you use OneDrive, your Desktop may be at C:\Users\YOUR_USERNAME\OneDrive\Desktop. Run this PowerShell command to check:
[Environment ]::GetFolderPath(' Desktop' )
Run this to add Diana to Windows startup:
Copy-Item " start_diana.bat" " $env: APPDATA \Microsoft\Windows\Start Menu\Programs\Startup\"
π₯οΈ System Control (15 tools)
Tool
Description
open_application
Opens any app by name
close_application
Force-closes an app (auto-adds .exe)
run_system_command
Runs PowerShell commands
simulate_typing
Types text at cursor position
simulate_hotkey
Keyboard shortcuts (Ctrl+C, Alt+Tab, etc.)
press_key
Presses a single key
simulate_click
Mouse click at coordinates
move_mouse
Moves mouse cursor
scroll_mouse
Scrolls up/down
drag_mouse
Click and drag
double_click
Double-clicks at coordinates
focus_window
Brings a window to front
list_open_windows
Lists all open windows
get_screen_size
Returns screen resolution
take_screenshot
Captures the screen
β‘ System Power (13 tools)
Tool
Description
set_volume
Sets volume (0-100)
mute_volume
Toggles mute
set_brightness
Sets brightness (0-100)
lock_pc
Locks the computer
sleep_pc
Puts PC to sleep
shutdown_pc
Shuts down with delay
restart_pc
Restarts with delay
cancel_shutdown
Cancels pending shutdown
get_clipboard
Reads clipboard content
set_clipboard
Copies text to clipboard
set_wallpaper
Changes desktop wallpaper
toggle_wifi
Enables/disables WiFi
send_notification
Windows toast notification
π System Monitoring (7 tools)
Tool
Description
get_system_info
CPU, RAM, OS details
get_battery_info
Battery percentage
get_ip_address
Local and public IP
list_processes
Running processes
kill_process
Kills a process by PID
get_disk_usage
Disk space info
get_date_time
Current date and time
π Web & Intelligence (8 tools)
Tool
Description
web_search
DuckDuckGo instant answers
get_weather
Weather via wttr.in (free)
open_youtube
Opens YouTube search
open_url
Opens any URL
read_webpage
Extracts text from URLs
calculate
Math calculator
translate_text
Language translation
generate_password
Secure password generator
π File Management (13 tools)
Tool
Description
find_files
Search files by pattern
move_file
Move files
copy_file
Copy files
delete_file
Delete files/folders
rename_file
Rename files
read_file_contents
Read file content
write_file_contents
Write to files
append_to_file
Append to files
create_folder
Create directories
get_file_info
File size, dates
list_directory
List folder contents
zip_files
Compress to ZIP
unzip_file
Extract ZIPs
π§ Memory & Notes (10 tools)
Tool
Description
remember
Store in long-term memory
recall
Retrieve a memory
recall_all
List all memories
forget
Delete a memory
save_conversation
Save chat history
get_daily_briefing
Morning briefing
set_timer
Countdown timer
take_note
Quick notes
read_notes
Read all notes
clear_notes
Clear all notes
π± Mobile (1 tool)
Tool
Description
trigger_mobile_webhook
Android Tasker webhook
"Hey Diana, open Notepad and type 'Hello World'"
"Hey Diana, what's the weather in Mumbai?"
"Hey Diana, play lofi music on YouTube"
"Hey Diana, find all PDF files on my Desktop"
"Hey Diana, create a folder called Projects on D drive"
"Hey Diana, remember that my meeting is at 3 PM tomorrow"
"Hey Diana, what do you remember?"
"Hey Diana, set volume to 40"
"Hey Diana, set a timer for 10 minutes"
"Hey Diana, translate 'good morning' to Japanese"
"Hey Diana, generate a secure password"
"Hey Diana, what's my battery level?"
"Hey Diana, what's my IP address?"
"Hey Diana, lock my PC"
"Good morning Diana!" β Full daily briefing
Diana/
βββ main.py # Orchestrator, persona, tool declarations
βββ voice_engine.py # WebSocket audio streaming + wake word
βββ mcp_controller.py # All 67 tool implementations
βββ diana_ui.py # Floating avatar overlay + thought bubbles
βββ start_diana.bat # Auto-start script
βββ requirements.txt # Python dependencies
βββ .env # API keys (not committed)
βββ diana_memory.json # Persistent memory (auto-created)
βββ diana_notes.txt # Notes storage (auto-created)
βββ diana_history.json # Conversation history (auto-created)
Service
Purpose
Free?
Get it at
Google Gemini API
Live Audio & tool orchestration
β
Free tier
aistudio.google.com
Google Speech
Wake word detection
β
Free
Built into speech_recognition
DuckDuckGo
Web search
β
Free
No key needed
wttr.in
Weather
β
Free
No key needed
MyMemory
Translation
β
Free
No key needed
Problem
Solution
GEMINI_API_KEY is empty
Create .env file with your key
No module named 'pyaudio'
pip install pyaudio β may need VS Build Tools on Windows
File paths fail
Check your real Desktop path with [Environment]::GetFolderPath('Desktop') in PowerShell
notepad won't close
Fixed: Diana auto-appends .exe now
Wake word not detecting
Speak clearly, check microphone permissions
Terminal encoding crash
Always run with PYTHONIOENCODING=utf-8
Built with β€οΈ by VAIBHAV7848
Diana is named after the Roman goddess of the moon β always watching, always ready.