GRANAT Core Architecture

Click any component to explore its implementation

šŸ“±
Client SDKs
iOS / Android / Web
šŸ“„
Ingest API
Chunked Upload + BLAKE3
⚔ Cheap-Path (90%+ of events)
šŸŽµ
Mel Pipeline
128-bin Spectrogram
🧠
ECAPA-TDNN
Speaker Embeddings
šŸ”
DiskANN
Vector Search
šŸ“Š
Welford Aggregator
O(1) Incremental Stats
šŸŽ§
Preview Gen
HiFi-GAN-lite
Lazy Trigger: Popularity / Curator / Schedule
šŸ”„ Heavy-Path (<0.5% of events)
šŸ 
WPE Dereverb
Room Echo Removal
šŸŽ¤
DeepFilterNet3
SOTA Denoising
šŸ”Š
HiFi-GAN
Neural Vocoder
ā›“ļø Blockchain Anchoring
🌳
Merkle Root
BLAKE3 Hash Tree
ā›“ļø
TON Anchor
Smart Contract

Two-Path Architecture

Lazy execution keeps costs minimal — heavy processing only when truly needed

Cheap-Path Every Upload 90%+
  • 1

    Ingest & Verify

    Chunked upload with BLAKE3 integrity check

  • 2

    Quality Score

    SNR, clipping, duration assessment

  • 3

    Extract Features

    Mel-spectrogram + ECAPA embedding

  • 4

    Update Aggregate

    Welford O(1) incremental statistics

  • 5

    Generate Preview

    HiFi-GAN-lite for instant feedback (p95 ≤60s)

Heavy-Path Official Mixes Only <0.5%
  • 1

    Trigger Condition

    Popularity threshold / curator / schedule

  • 2

    WPE Dereverberation

    Remove room echo from far-field recordings

  • 3

    DeepFilterNet3

    SOTA denoising (PESQ 3.17)

  • 4

    HiFi-GAN Synthesis

    High-quality neural vocoding

  • 5

    Anchor to TON

    Merkle root + signed transaction

Tech Stack

Proven, production-ready technologies — no exotic dependencies

šŸŽ¤ Audio / ML
Speaker Embeddings ECAPA-TDNN
Denoising DeepFilterNet3
Dereverberation WPE
Preview Vocoder HiFi-GAN-lite
Full Vocoder HiFi-GAN
šŸ“Š Data / Search
Vector Search DiskANN + PQ
Aggregation Welford's Algorithm
Quantiles t-digest / P²
Hashing BLAKE3
āš™ļø Infrastructure
Orchestration Kubernetes
Streaming Apache Kafka
Monitoring Prometheus + Grafana
Key Management HSM / KMS
Blockchain TON