Ludovic Bergeron
Back to work

Sign2Speak

An American Sign Language translator that runs entirely on the phone, from camera frame to spoken English, with no server round-trip.

The full pipeline running on the phone: camera, landmarks, classifier, Gemma, speech.

Why it has to run on the device

Most sign language translation tools stream video to a server. For a deaf signer that means two costs at once: a dependency on the network exactly when a conversation cannot wait, and a privacy cost on exchanges that are often medical, legal or personal. Sign2Speak takes the opposite constraint as the starting point — nothing leaves the phone — and asks what is still achievable inside it.

The pipeline

Five stages run on the handset. CameraX captures the signer. MediaPipe extracts hand and face landmarks from each frame. A TFLite classifier turns the landmark sequence into ASL gloss. Gemma 4 E2B, running on-device through LiteRT-LM, rewrites that gloss as fluent English. Android text-to-speech says it out loud.

The classifier

I trained a custom Conv1D + Transformer architecture in Keras on the Kaggle ISLR dataset — roughly 94,000 sequences at 543 landmarks per frame — and exported it to TFLite via LiteRT for on-device inference. The convolutional front end summarises short bursts of movement; the attention layers relate them across the whole sign.

Working from landmarks rather than raw frames is the decision the rest of the system rests on. It collapses the input dimensionality by orders of magnitude, which is what makes a TFLite budget realistic at all; it drops the background, the lighting and the signer’s skin tone from the representation; and it leaves a model small enough to load alongside a language model on the same device.

Gloss is not English

ASL gloss carries the signs in the order they were produced, which is not English word order and often omits function words entirely. A rule-based rewriter breaks on anything it has not seen. Handing the gloss to a small language model on the device gives a fluent sentence while keeping the no-network guarantee intact — the reason the whole system is built around a model that fits in a phone.

Where it goes next

The vocabulary covers 50 signs and the architecture extends to the full 250-sign set of the dataset. The harder step is continuous signing: segmenting a stream into signs without a pause between them, rather than classifying isolated ones. Latency across the five stages is the budget that governs every choice.