🚀 Возможности •
💻 Установка •
⚙️ Настройка •
MASHA — локальный ИИ-ассистент для macOS, ориентированный на приватность, локальное выполнение и гибкую настройку.
Ассистент объединяет:
- 🧠 Локальные LLM через Ollama
- 🗣 TTS (озвучка ответов)
- 🎤 Поддержка активации по голосу
- 🎯 Интеллектуальный роутинг интентов
- 🖥 Графический интерфейс
- ⚙️ Модульную и расширяемую архитектуру
Проект был создан из личного разочарования в возможностях стандартных голосовых ассистентов.
Цель MASHA — быть умным, гибким и полностью локальным помощником, который даёт пользователю контроль,
а не навязывает ограничения.
- 💬 Общение в свободной форме
- 🧠 Выполнение системных команд (open app, system actions и др.)
- 🔀 Интеллектуальный роутинг интентов (команда / диалог)
- 🔊 Озвучка ответов
- 🎙 Голосовой ввод через Hugging Face Whisper (ASR), активация по «привет, Маша» или просто «Маша»
- 🪟 GUI в стиле Siri / ChatGPT
- 🧩 Модульная архитектура
- 🛠 Простая замена модели LLM
brain/
├─ client.py
└─ support_model.py
core/
├─ actions.py
├─ agent.py
├─ intent_router.py
└─ tts.py
gui/
├─ gui.py
└─ styles.py
tools/
├─ env_tools.py
├─ promt.py
├─ system.py
└─ utils.py
.env.example
main.py
⚠️ Файл.envне хранится в репозитории Используйте.env.exampleкак шаблон.
- Клонировать репозиторий
git clone https://github.com/Baggrisha/AI-Assistance.git
cd AI-Assistance- Установить зависимости
pip install -r requirements.txt
brew install ollama
ollama pull gemma3:4b- Создайте
.envна основе примера
cp .env.example .env- Заполните основные переменные
MINI_MODEL="gemma3:4b"
MAIN_MODEL="gemma3:4b"
HF_TOKEN=TOKEN
VOICE_ENABLED="0"
HF_ASR_MODEL="ai-sage/GigaAM-v3"
HF_ASR_DEVICE="cpu"- HuggingFace токен (обязателен для ASR)
- Создайте токен: https://huggingface.co/settings/tokens (тип Read)
- Примите условия модели: https://huggingface.co/pyannote/segmentation-3.0
- Вставьте токен (начинается с
hf_) вHF_TOKEN
- ASR и микрофон
- Укажите
HF_ASR_MODEL(по умолчаниюai-sage/GigaAM-v3) иHF_TOKEN, если модель приватная. - Опционально задайте
HF_ASR_DEVICE(cpu/cuda).
- Укажите
- Ярлыки Shortcuts для таймера, секундомера и погоды (установите и выдайте все разрешения):
- Python Timer: https://www.icloud.com/shortcuts/dbf0c70ef9e942cb9ede0a7119409874
- Python Stopwatch: https://www.icloud.com/shortcuts/e91cb3e7233e48c5a564109d37cd1603
- Python Get Location: https://www.icloud.com/shortcuts/d726e7816d304742a3baa7f1d5e031fe
python main.py- agent.py — главный контроллер
- intent_router.py — определяет: команда или диалог
- actions.py — системные действия
- tts.py — озвучка
- gui/ — интерфейс
- brain/ — работа с LLM
- main.py — точка входа
- Голосовой ввод
- Память диалога
- Активация по голосу
- Добавить фоновую активность
Если вам понравился этот проект — поставьте ему звездочку ⭐ Это действительно помогает 🚀
🚀 Features •
💻 Installation •
⚙️ Setup •
MASHA is a local AI assistant for macOS focused on privacy, local execution, and full customization.
It combines:
- 🧠 Local LLMs via Ollama
- 🗣 Text-to-Speech
- 🎤 Voice activation support
- 🎯 Intelligent intent routing
- 🖥 Graphical user interface
- ⚙️ Modular and extensible architecture
- 💬 Natural conversation
- 🧠 System command execution
- 🔀 Intelligent intent routing
- 🔊 Voice responses
- 🎙 Voice input powered by Hugging Face ASR (GigaAM), activation by "Привет, Маша" or just "Маша"
- 🪟 Siri / ChatGPT–style GUI
- 🧩 Modular architecture
- 🛠 Easy model switching
- Clone the repo
git clone https://github.com/Baggrisha/AI-Assistance.git
cd AI-Assistance- Install dependencies
pip install -r requirements.txt
brew install ollama
ollama pull gemma3:4b- Copy the example env
cp .env.example .env- Fill key variables
MINI_MODEL="gemma3:4b"
MAIN_MODEL="gemma3:4b"
HF_TOKEN=TOKEN
VOICE_ENABLED="0"
HF_ASR_MODEL="ai-sage/GigaAM-v3"
HF_ASR_DEVICE="cpu" # or cuda, if available- HuggingFace token (required for ASR)
- Create a token: https://huggingface.co/settings/tokens (type Read)
- Accept model terms: https://huggingface.co/pyannote/segmentation-3.0
- Paste the token (starts with
hf_) intoHF_TOKEN
- ASR and mic
- Set
HF_ASR_MODEL(defaultai-sage/GigaAM-v3) andHF_TOKENif the model is private. - Optionally set
HF_ASR_DEVICE(cpu/cuda).
- Set
- Shortcuts for timer, stopwatch, and local weather — install and grant all permissions:
- Python Timer: https://www.icloud.com/shortcuts/dbf0c70ef9e942cb9ede0a7119409874
- Python Stopwatch: https://www.icloud.com/shortcuts/e91cb3e7233e48c5a564109d37cd1603
- Python Get Location: https://www.icloud.com/shortcuts/d726e7816d304742a3baa7f1d5e031fe
python main.py- agent.py — core orchestrator
- intent_router.py — command vs dialogue
- actions.py — system actions
- tts.py — voice output
- gui/ — UI layer
- brain/ — LLM interaction
- main.py — entry point
- Voice
- Memory of Dialogue
- Voice Activation
- Add background activity
If you like this project — give it a star ⭐ It really helps 🚀