- Python 92.5%
- JavaScript 3.7%
- HTML 1.1%
- CSS 1%
- ASL 0.8%
- Other 0.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| ansible | ||
| architecture_v1 | ||
| architecture_v3 | ||
| architecture_v4 | ||
| benchmarks | ||
| c4-architecture-model | ||
| icons/university | ||
| output_artifacts | ||
| scripts | ||
| .gitignore | ||
| ARCHITECTURE_COMPRASION.md | ||
| LICENSE | ||
| README.md | ||
| README.ru.md | ||
| requirements.txt | ||
Автор: Albert Aksenov
Licensed under the MIT License. See LICENSE for details.
Smart Speaker Codebase
This repository contains multiple implementations and supporting artifacts for a local, offline-capable voice assistant (“Smart Speaker”). Each folder captures a distinct architecture, deployment strategy, benchmarking suite, or process artifact used throughout the project.
Directory Structure
-
ansible/
Ansible playbooks and roles to provision and deploy the Smart Speaker environment (Ubuntu ARM64, Python, dependencies, services). -
architecture_v1/
Intent-based classification implementation using Rhasspy for wake‑word and intent parsing. -
architecture_v3/
Hybrid LLM + intent system combining fast intent handlers with a fallback large‑language model. -
architecture_v4/
Final optimized architecture: local intent handlers for core commands, LLM fallback via llama.cpp, plus WebUI for monitoring. -
benchmarks/
Module‑level and end‑to‑end benchmark scenarios, scripts, and result reports to measure latency, accuracy, and resource usage. -
c4-architecture-model/
C4 diagrams (architecture-as-code) and decision records capturing static, dynamic, and deployment views. -
output_artifacts/
Project documentation and process artifacts, organized by practice area: - Context & Requirements Management
- Project Planning
- Project Tracking
- Architectural Design
- Quality Management
- Configuration Management
- Risk Management
- Technical Work
- Communication
- Reflection -
architecture_comparison.md
The project went through four architecture iterations, each addressing specific issues and enhancing performance.
Architecture Versions
Architecture v1 – Intent‑Based Classification
Located in architecture_v1/
A Rhasspy‑based pipeline that parses predefined intents and dispatches handlers.
- Pattern: Intent classification only
- Framework: Rhasspy NLU
- Approach: Wake‑word → intent lookup → command handler
- Best for: Simple, predictable voice commands with minimal dependencies
Architecture v3 – Hybrid LLM + Intent System
Located in architecture_v3/
Combines intent handlers for known commands with a fallback LLM for open‑ended queries.
- Pattern: Intent-first with LLM fallback
- Framework: Custom Python agent + llama.cpp
- Approach: Fast responses for core commands, adaptive handling for complex requests
- Best for: Natural conversation plus reliable device control
Architecture v4 – Optimized Hybrid Architecture
Located in architecture_v4/
Final production‑ready version balancing speed and flexibility on ARM hardware.
- Pattern: Local intent handlers + lightweight LLM fallback
- Components: OpenWakeWord, Vosk STT, llama.cpp, Piper TTS, Flask WebUI
- Approach: Streaming pipeline with performance monitoring
- Best for: Offline operation with sub‑5s end‑to‑end latency
Getting Started
Choose the architecture that fits your needs and deploy with Ansible or Docker:
# Provision infrastructure and services
cd ansible
# follow README.md
# Quick start for v1
cd architecture_v1
docker-compose up
# Quick start for v3
cd architecture_v3
python main.py
# Quick start for v4
cd architecture_v4
# follow README.md
License
This project is licensed under the MIT License.
Copyright (c) 2025 Samat Gatin and contributors.