No description
  • Python 92.5%
  • JavaScript 3.7%
  • HTML 1.1%
  • CSS 1%
  • ASL 0.8%
  • Other 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-29 12:10:07 +03:00
ansible Smart Speaker Project import from GitLab 2025-08-12 10:44:07 +03:00
architecture_v1 Добавил автора и лицензию во всех .md, .py файлы 2025-09-01 12:54:50 +03:00
architecture_v3 Добавил автора и лицензию во всех .md, .py файлы 2025-09-01 12:54:50 +03:00
architecture_v4 Добавил docker-compose 2025-09-01 12:59:18 +03:00
benchmarks Smart Speaker Project import from GitLab 2025-08-12 10:44:07 +03:00
c4-architecture-model Smart Speaker Project import from GitLab 2025-08-12 10:44:07 +03:00
icons/university ... 2026-07-29 12:10:07 +03:00
output_artifacts Smart Speaker Project import from GitLab 2025-08-12 10:44:07 +03:00
scripts Smart Speaker Project import from GitLab 2025-08-12 10:44:07 +03:00
.gitignore Initial commit 2025-08-11 12:36:20 +03:00
ARCHITECTURE_COMPRASION.md Добавил автора и лицензию во всех .md, .py файлы 2025-09-01 12:54:50 +03:00
LICENSE Smart Speaker Project import from GitLab 2025-08-12 10:44:07 +03:00
README.md Добавил автора и лицензию во всех .md, .py файлы 2025-09-01 12:54:50 +03:00
README.ru.md Машинный перевод файла README.md 2026-07-29 11:52:18 +03:00
requirements.txt Smart Speaker Project import from GitLab 2025-08-12 10:44:07 +03:00

Автор: 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.