Skip to content

Privacy-first AI meeting note taker for Windows, macOS and Linux. Free, open source (MIT). On-device Whisper/Parakeet transcription and speaker diarization, no meeting bot. Open-source alternative to Granola, Otter and Fireflies. https://meetily.ai

5.2 KB
Raw Blame

System Architecture

Meetily is a self-contained desktop application built with Tauri. It combines a Rust-based backend with a Next.js frontend into a single, efficient, and cross-platform application.

High-Level Architecture Diagram

graph TD
    subgraph User Interface
        A[Next.js Frontend]
    end

    subgraph "Core Logic (Rust)"
        B[Tauri Core]
        C[Audio Engine]
        D[Transcription Engine]
        E[Database]
        F[Summary Engine]
    end

    A -- Tauri Commands --> B
    B -- Manages --> C
    B -- Manages --> D
    B -- Manages --> E
    B -- Manages --> F

Component Details

Frontend (Next.js)

  • Provides the user interface for managing meetings, displaying transcriptions, and configuring the application.
  • Communicates with the Rust core through Tauri's command system.

Backend (Rust Core)

  • Tauri Core: The heart of the application, responsible for managing the window, handling events, and exposing the Rust core to the frontend.
  • Audio Engine: Captures audio from the microphone and system, processes it, and prepares it for transcription.
  • Transcription Engine: Uses local speech-to-text models (Whisper or Parakeet) to transcribe the captured audio. It can be accelerated with a GPU.
  • Database: A local SQLite database that stores meeting metadata, transcripts, and summaries.
  • Summary Engine: Generates meeting summaries using various Large Language Models (LLMs), including local models via Ollama.

Frontend and Native Communication

The supported application uses Tauri commands and events, not a separate FastAPI service. The Python/FastAPI, Docker, and standalone whisper-server code under backend/ is an unsupported legacy archive.

  • Frontend code calls Rust commands with invoke from @tauri-apps/api/core. Command registration lives in lib.rs; implementations delegate to the relevant Rust service.
  • Rust emits events through Tauri, and frontend listeners update React state. Check the current command arguments and event payloads before changing either side of the interface.
  • SidebarProvider.tsx manages meeting navigation and summary polling, and uses the recording-state context. Preserve the existing state ownership rather than introducing a second source of truth.

Audio Pipeline

pipeline.rs receives asynchronous microphone and system-audio chunks, converts input to mono, resamples when necessary, and buffers samples for mixing.

The mixed audio has two consumers with different requirements:

  • Recording: mixed audio is sent to recording_saver.rs, which uses incremental saving and tracks recording metadata and transcript segments.
  • Transcription: vad.rs selects speech segments and resamples them for the transcription workers. Silence filtering must not remove audio from the recording output.

The input-processing target is 48 kHz; VAD-selected transcription segments are sent at 16 kHz. Timing and buffering settings belong to the implementation, so inspect the current code rather than assuming a fixed mixing-window duration. During shutdown, the pipeline drains its channel and flushes remaining speech before completing.

On Linux, pulse_linux.rs captures microphone and system audio through the PulseAudio protocol, including on PipeWire. It dispatches pending mainloop events in bounded nonblocking bursts, sleeping only when idle, so capture can keep up without starving sample delivery or stop checks.

For audio changes, start in the relevant subsystem:

Transcription and Model Management

Local speech recognition is implemented through the Whisper and Parakeet providers under audio/transcription/. Whisper model discovery, downloads, loading, and cached context are managed by whisper_engine.rs.

Model directories and acceleration behavior depend on application configuration and the compiled backend. Use the current initialization and loading code as the source of truth rather than hardcoding storage paths or assuming runtime GPU fallback. See the build instructions and GPU acceleration guide for platform setup.