Etymology & Philosophy
In classical Sanskrit, Śruti (श्रुति) signifies "that which is heard"—knowledge transmitted directly through acoustic perception without written mediation.
S.H.R.U.T.I. (Wake-Word:"Hey Shruti") mirrors this philosophy as an on-device, zero-text, audio-native telephony assistant. Powered byllama.cpp+ Vulkan (Qwen3-Omni-3B GGUF), it operates across universal Android smartphone GPUs (Qualcomm Adreno, ARM Mali, Imagination PowerVR, Samsung Xclipse) via standard Khronos Vulkan compute shaders, eliminating closed-source, fragmented NPU vendor SDKs in favor of universal hardware compatibility.
-
Passive In-Call & Ambient Voice Vectorizer: Operates strictly as a zero-touch passive listener during calls and ambient meetings. The AI never interrupts, intercepts, or converses with callers live; incoming calls use the standard default dialer
[Decline]/[Answer]. -
Universal Vulkan &
llama.cppHardware Execution Pipeline:-
Tier 1 (GPU - Vulkan Compute via
ggml-vulkan): Dual-Head Vectorizer (192-d speaker identity$e_{\text{speaker}}$ + 64-d prosody$z_{\text{prosody}}$ ) and Streaming Whisper semantic encoder (128-d semantic intent$w_{\text{semantic}}$ + 1-d pause delta$\Delta_{\text{pause}}$ ) execute in$\le 16\text{ ms}$ compute bursts via SPIR-V shaders over systemlibvulkan.so. Full SLM debrief generation offloaded to Vulkan GPU (-ngl 99). -
Tier 2 (CPU - ARM NEON / GGML): Silero VAD v5 (
$< 2.5\text{ ms}$ ), lock-free C++ DSP ring buffer, and multithreaded ARM NEON CPU fallback if GPU memory is constrained.
-
Tier 1 (GPU - Vulkan Compute via
- Post-Call Expressive Storytelling / Spoken Debrief: Transforms on-device vector streams into expressive spoken summaries with speaker attribution, dynamic prosody (SSML), and conversational brevity on demand once calls or ambient sessions conclude.
-
GGUF Model Packaging: Pruned
Qwen3-Omni-3B(~1.45B params) quantized toQ4_K_M(~725 MB) andQ8_0vectorizer weights, ensuring rapid zero-copy memory mapping (mmap) and minimal RAM pressure. -
Google Play & DoT Policy Compliant:
-
Human-in-the-Loop 1909 Intent: Pre-filled
Intent.ACTION_SENDTO(smsto:1909) for single-tap user SMS confirmation (Play StoreSEND_SMSpolicy compliant). -
ROLE_DIALEREmergency Routing: Complete dialer client with instant zero-latency pass-through for Emergency numbers (112/911). - Zero Caller-Impersonation Risk: The AI is strictly passive on calls; assistant persona is transparently established during first-time voice onboarding.
-
Human-in-the-Loop 1909 Intent: Pre-filled
-
Zero-Persistence Privacy Invariant: No raw audio (
.wav,.pcm,.mp3) and no textual transcripts are ever written to flash storage. Volatile RAM buffers are aggressively scrubbed usingmemset_s. -
Memory-Mapped FlatBuffers
.vecstream: High-speed, zero-copy composite vector stream storage ($v_t \in \mathbb{R}^{384}$ ) encrypted at rest via AES-256-GCM.
┌──────────────────────────────────────────────┐
│ Inbound PSTN / Cellular Call │
└──────────────────────┬───────────────────────┘
│
┌───────────────┴───────────────┐
│ TRAI O(1) Prefix Evaluator │
└───────┬───────────────┬───────┘
Matches 140 │ │ Pass / Unknown / 160
▼ ▼
[ Instant Drop ] [ Default Dialer UI ]
[Decline] [Answer]
│
▼ (User Answers - Passive Mode)
┌───────────────────────────┐
│ Lockless SPSC Ring Buffer │
│ (AudioRingBuffer.cpp) │
└─────────────┬─────────────┘
│
┌────────────────────────┴────────────────────────┐
▼ ▼
┌───────────────────────────────┐ ┌───────────────────────────────┐
│ Silero VAD (CPU / ARM NEON) │ │ llama.cpp / GGML Vulkan GPU │
│ * Speech chunking (<2.5ms) │ │ * 192-d Speaker + 64-d Prosody│
└───────────────────────────────┘ └───────────────┬───────────────┘
│
▼
┌───────────────────────────────┐
│ GGML Vulkan Whisper Encoder │
│ * 128-d Semantic + 1-d Pause │
└───────────────┬───────────────┘
│
▼
┌───────────────────────────────┐
│ FlatBuffers .vecstream Serial │
│ * Composite vt in R^384 │
└───────────────┬───────────────┘
│
▼
┌───────────────────────────────┐
│ SQLCipher AES-256 Storage │
│ * Volatile RAM scrub (memset) │
└───────────────┬───────────────┘
│
(Post-Call User Query / Hero Orbit Tap)
│
▼
┌───────────────────────────────┐
│ llama.cpp Vulkan SLM Engine │
│ * Qwen3-Omni-3B (Q4_K_M GGUF) │
│ * SSML Prosody & Storytelling │
└───────────────────────────────┘
shruti/
├── PRD.md # Product Requirements Document (v4.0.0)
├── TRD.md # Technical Requirements Document (v4.0.0)
├── architecture.md # System Architecture Specification (v4.0.0)
├── notebooks/
│ ├── dual_head_vectorizer_qat.ipynb# Dual-Head Vectorizer GGML / GGUF Export
│ └── shruti_training.ipynb # Qwen3-Omni Training & GGUF Quantization
├── milestone_tasks.md # 16-Sprint Implementation Roadmap
├── ui_design.md # Gemini-Style UI/UX & Passive In-Call Spec
├── backend_schema.md # AIDL, FlatBuffers & SQLCipher DDL Schema
├── restriction.md # Regulatory & Store Policy Analysis
├── TRAINING_PLAN.md # S2S Debrief Model Training & Surgery Plan
├── LICENSE # Apache 2.0 License
├── .github/workflows/build.yml # GitHub Actions CI/CD Build Pipeline
└── app/
├── build.gradle.kts # Android application configuration
├── CMakeLists.txt # NDK build script for C++20 engine & Vulkan
└── src/
├── main/
├── cpp/
│ ├── include/
│ │ ├── shruti_ring_buffer.hpp # Lockless circular queue
│ │ └── shruti_memory_sanitizer.hpp # Volatile memory wiping (memset_s)
│ └── src/
│ ├── shruti_ring_buffer.cpp # SPSC atomic memory barriers
│ └── shruti_jni_bridge.cpp # Native JNI entry point
├── java/org/seven_cgpalabs/shruti/
│ ├── core/
│ │ └── ShrutiAudioEngine.kt # JNI Kotlin controller wrapper
│ └── ui/
│ └── ShrutiMainActivity.kt # Activity entry point
└── AndroidManifest.xml
git clone https://github.com/7CGPA-Labs/shruti.git
cd shrutiEnsure Android NDK r26c and CMake 3.22.1 are installed in your Android SDK environment:
# Compile native C++20 DSP binaries and debug APK with Vulkan support
./gradlew assembleDebug-
Long Multi-Person Conversation & Vector Trajectory Architecture: Supports 10 to 60+ minute multi-speaker meetings/conversations via GGML speaker diarization, streaming 30-second chunk-and-flush KV-cache management (constant ~450 MB RAM), and Vector Trajectory Matrix (
$\mathbf{M}_{\text{session}} \in \mathbb{R}^{K \times 512}$ ) storage in SQLCipher.
- Product Requirements Document (PRD)
- Technical Requirements Document (TRD)
- System Architecture Specification
- Dual-Head Vectorizer GGUF Notebook
- Model Training & GGUF Quantization Plan
- Implementation Roadmap & Milestones
- UI/UX Design Specification
- Backend & System Schema Specification
- Regulatory & Store Restrictions Analysis
Copyright © 2026 7CGPA-Labs. Distributed under the Apache 2.0 License.