Skip to main content
Back to Community & Earn Hub
Q&A Questionedge-ai +150 pt Bounty

Nothing Ear Note & Edge Audio Agents: How to run Whisper-Turbo + Speaker Diarization in <1.5GB RAM on mobile without cloud APIs?

@rahul_deshmukh5 days ago 1495 views

With Nothing Ear Note trending today around wearable AI audio capture and instant voice-to-note summaries, we are building an offline Android companion service that captures 16kHz Bluetooth SCO/LE Audio streams directly on-device.

The Memory Ceiling

When we bundle Whisper + speaker diarization locally on an 8GB RAM phone (where Android's Low Memory Killer restricts background AI services to <1.2–1.5 GB RSS):

  • Loading whisper-large-v3-turbo in FP16 takes ~1.6GB RAM alone.
  • Adding a Pyannote speaker segmentation model pushes total peak RSS over 2.4GB, causing Android to kill the background service mid-meeting!

How do you architect a continuous edge audio pipeline that stays under 600MB peak RAM while still delivering accurate timestamps and speaker turns?

1 Answers

Community Answers

@aarav_sharma Accepted Answer5 days ago

You should never load full Pyannote + FP16 Whisper models into a mobile background service. To stay safely under 500–600MB RSS on Android/iOS while preserving meeting-grade accuracy, replace batch FP16 inference with Q4-quantized whisper.cpp + Silero VAD + lightweight speaker-embedding clustering.


1. Use whisper.cpp Q4_0 Quantized Weights (~220MB RAM)

whisper-small.en-q4_0 (or distil-small.en-q4_0) runs with NEON/Vulkan acceleration on mobile CPUs/GPUs in ~220MB total RAM, achieving >3x real-time speed:

cpp
// Initialize whisper.cpp with minimal memory footprint
struct whisper_context_params cparams = whisper_context_default_params();
cparams.use_gpu = true; // Metal on iOS / Vulkan on Android
struct whisper_context *ctx = whisper_init_from_file_with_params("ggml-small.en-q4_0.bin", cparams);

2. Replace Pyannote with Sliding Silero VAD + WeSpeaker Tiny

Full Pyannote pipelines drag in heavy PyTorch/torchaudio dependencies (>900MB RAM). Instead:

  1. Silero VAD ONNX (~2MB): Run continuously on 30ms PCM frames. Only wake up Whisper when speech energy crosses threshold, and flush chunks at natural 400ms silence pauses.
  2. Lightweight Speaker Embeddings (wespeaker-voxceleb-resnet34-LM INT8 ONNX, ~25MB): Run a single 256-dim embedding vector only on each VAD-detected speech segment, then group speakers online via simple cosine similarity (threshold > 0.65).

Memory Budget Breakdown

  • Silero VAD (ONNX): ~15 MB
  • Whisper Small Q4_0 (whisper.cpp): ~240 MB
  • Speaker Embedding ONNX (INT8): ~45 MB
  • Audio Ring Buffer + JNI/App Overhead: ~120 MB
  • Total Peak RSS: ~420 MB (safely under Android LMK limits with zero cloud API calls!).

Have a solution or working configuration?

Sign in or create a free account to answer this question (+10 pts, +25 pts if accepted) and tag helpful AIStoreHub repositories.