-- --- .-. ... .
Powered by TLM 1.5 (Tap Learning Model Engine)
Turn your laptop unibody metal into a touch surface across any OS & laptop OEM.
MORSE is a zero-hardware, cross-platform acoustic gesture recognition platform powered by TLM 1.5 (Tap Learning Model). It converts standard unibody aluminum laptops (macOS, Windows, Linux) into software-defined touch surfaces.
| Model Type | Input Signal | Core Processing Engine | Execution Output |
|---|---|---|---|
| 🔤 LLM (Language Model) | Text / Speech Tokens | Deep Transformer Weights | Text Generation & Reasoning |
| 🎙️ TLM (Tap Learning Model) | Kinetic Impulse Waves | 3,730D Spatial Matrix | 0.3ms OS Action & Media Controls |
By exploiting the physical laws of solid-state acoustic wave dispersion (
git clone https://github.com/CodeWithWinton/morse.git
cd morse
pip install sounddevice numpy scipy scikit-learn h5py huggingface_hubpython3 smart_detector.py- 👈 Left Double-Tap: Smart WhatsApp Toggle (Open / Focus / Hide)
- 👉 Right Double-Tap: Media Play / Pause (Spotify, Apple Music, YouTube)
Anyone on macOS, Windows, or Linux can collect physical tap/noise samples and contribute them directly to our master dataset!
Launch the interactive universal collector:
python3 collect_data.py- Auto Hardware Detection: Automatically detects microphone hardware across macOS, Windows (WASAPI/DirectSound), and Linux.
- Auto Noise Floor Calibration: Measures ambient room noise for 1s to set dynamic local trigger thresholds.
- Stereo-to-Mono Downmixing: Automatically converts 2-channel or multi-channel audio to standardized 1D float32 arrays (24,000 samples @ 48kHz).
- Categories:
double_left_palm,double_right_palm,noise_and_typing.
Run automated quality control before syncing:
python3 audit_dataset.py- Integrity Audit: Checks for NaNs, Infs, dead silence, and clipped audio.
- Noise Contamination Check: Verifies that
noise_and_typingsamples contain zero stray tap impacts. - Spatial Label Check: Verifies Left taps are physically Left (high onset ratio) and Right taps are physically Right (high structural decay).
Push your local dataset contributions directly to Hugging Face LFS:
python3 sync_dataset.pyWhen you push, sync_dataset.py automatically:
- 💻 Auto-detects your laptop model (e.g.
MacBook Air (M1, 2020),Dell XPS 15,Lenovo ThinkPad). - 📊 Runs pre-push health audit and calculates your audit pass percentage.
- 📄 Generates
contribution_manifest.jsoncontaining sample counts, laptop model, platform details, and data bias summary (e.g. Left-heavy vs Right-heavy vs Noise-dominant). - 📝 Creates a detailed commit message on Hugging Face documenting who sent it, from what laptop model, sample count breakdown, and audit score.
- ☁️ Pushes both
.npyraw files and manifest JSON directly to Hugging Face LFS undercontributions/{username}/{laptop_model}/.
morse/
├── smart_detector.py # Main real-time tap detection daemon
├── train_double_tap_model.py # 8-core parallel ML trainer (HistGradientBoosting 5-Fold CV)
├── utils.py # Core signal processing, Mel STFT & peak alignment
├── custom_noise_engine.py # In-house chassis noise cancellation & speaker shield
├── hardware_guards.py # Hardware event guards (Quartz listener with cross-platform fallback)
├── actions.py # Cross-platform action handlers (WhatsApp, Media Play/Pause, Screenshot)
├── haptic_feedback.py # System audio feedback confirmation sound
│
├── collect_data.py # Launcher -> data_tools/universal_collector.py
├── sync_dataset.py # Launcher -> data_tools/hf_dataset_sync.py
├── audit_dataset.py # Launcher -> data_tools/audit_incoming_data.py
│
├── data_tools/ # Universal Dataset Suite
│ ├── universal_collector.py # Cross-platform interactive collector
│ ├── hf_dataset_sync.py # Hugging Face pull/push sync engine with rich metadata
│ └── audit_incoming_data.py # Master dataset health & spatial label auditor
│
├── calibration/ # Chassis mapping & frequency calibration tools
├── tests/ # Component unit tests
├── legacy/ # Archived scratch scripts and raw audio samples
└── docs/ # Documentation assets
Evaluated on 13,528 physical ground-truth samples (26,330 augmented feature vectors):
| Metric | Score |
|---|---|
| 5-Fold Cross-Validation Accuracy | 98.5% (+/- 0.1%) |
| Test Set Accuracy | 98.4% |
👈 double_left_palm Recall |
0.99 (99%) |
👉 double_right_palm Recall |
0.99 (99%) |
🛡️ noise_and_typing Precision |
0.99 (99% / Zero False Positives) |
| ⚡ Latency | <0.3ms |
| 🔋 CPU Load | <0.3% |
MORSE is dual-licensed:
- Community Edition (AGPL-3.0): Free for open-source developers, academic research, and non-commercial experimentation.
- Commercial OEM License: Low-latency C++/Rust embedded SDK for laptop manufacturers (Apple, Dell, HP, Lenovo, Asus). Contact manas17146@gmail.com for OEM licensing.
Created with ❤️ by Manas Maheshwari (@CodeWithWinton) & Daksh Sethi.