"Track your lah, lor, and more"
Singlish word tracking app with AI speaker recognition. One phone records everyone, automatically segments speakers, users claim their words, get Spotify Wrapped-style stats.
- One-phone group recording — Place one phone on the table, record everyone
- AI speaker diarization — Automatically identify who spoke when
- Singlish word detection — Track particles, expressions, and colloquial terms
- Claiming UI — Listen to audio samples, click "That's me!"
- Spotify Wrapped-style stats — Weekly/monthly word usage statistics
| Component | Technology |
|---|---|
| Mobile | React Native + Expo |
| Backend | FastAPI (Python) |
| ASR | MERaLiON-2-10B-ASR |
| Diarization | pyannote/speaker-diarization-3.1 |
| Database | Supabase (PostgreSQL + Auth) |
| ML Processing | Google Colab |
- Python 3.10+
- CUDA-capable GPU (recommended) or CPU
- HuggingFace account with pyannote model access
git clone https://github.com/wagmirep/Hack-Roll.git
cd Hack-Roll
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -r backend/requirements.txtThe pyannote speaker diarization model requires authentication:
- Create account at https://huggingface.co
- Accept model terms at https://huggingface.co/pyannote/speaker-diarization-3.1
- Generate token at https://huggingface.co/settings/tokens
- Create
.envfile:
# backend/.env
HUGGINGFACE_TOKEN=hf_your_token_here# Test MERaLiON transcription
python scripts/test_meralion.py
# Test pyannote diarization
python scripts/test_pyannote.py
# With custom audio
python scripts/test_pyannote.py --audio path/to/multi_speaker.wavcd backend
uvicorn main:app --reload --port 8000Both models benefit significantly from GPU acceleration.
# Check CUDA availability
python -c "import torch; print(f'CUDA: {torch.cuda.is_available()}')"
# Install CUDA-enabled PyTorch (if needed)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118# In Colab notebook
!pip install pyannote.audio transformers torch
import os
os.environ['HUGGINGFACE_TOKEN'] = 'hf_your_token'
# Test diarization
from pyannote.audio import Pipeline
pipeline = Pipeline.from_pretrained(
"pyannote/speaker-diarization-3.1",
use_auth_token=os.environ['HUGGINGFACE_TOKEN']
)- Spin up instance with CUDA 11.8+
- Clone repo and install dependencies
- Set
HUGGINGFACE_TOKENenvironment variable - Run test scripts
Hack-Roll/
├── backend/
│ ├── services/
│ │ ├── diarization.py # Speaker segmentation (pyannote)
│ │ └── transcription.py # ASR + corrections (MERaLiON)
│ ├── tests/
│ │ ├── test_transcription.py
│ │ └── test_word_counting.py
│ ├── processor.py # Pipeline orchestration
│ └── requirements.txt
├── scripts/
│ ├── test_meralion.py # MERaLiON test suite
│ └── test_pyannote.py # pyannote test suite
├── mobile/
│ └── src/ # React Native app
├── docs/
│ └── MODELS.md # Detailed model documentation
├── .planning/
│ ├── PROJECT.md
│ ├── ROADMAP.md
│ └── AGENTS.md
└── CLAUDE.md # AI assistant instructions
# Run all backend tests
cd backend && python -m pytest tests/ -v
# Run ML tests
cd ml && python -m pytest tests/ -v
# Current status: 95 tests passingThe app tracks these Singlish expressions:
| Category | Words |
|---|---|
| Particles | lah, lor, sia, meh, leh, hor, ah |
| Expressions | walao, alamak, aiyo, bojio |
| Colloquial | can, paiseh, shiok, sian, bodoh, kiasu, kiasi |
The ASR may mishear Singlish words. Automatic corrections handle common cases:
| ASR Output | Corrected To |
|---|---|
| "while up" | walao |
| "pie say" | paiseh |
| "shook" | shiok |
| "a llama" | alamak |
See backend/services/transcription.py for the full corrections dictionary.
| Phase | Status |
|---|---|
| 1. Model Setup & Validation | Complete |
| 2. Speaker Diarization Service | Complete |
| 3. ASR Transcription Service | Complete |
| 4. Processing Pipeline Integration | Complete |
MIT