Taewoo Park

Arts

emotype

Real-time Korean subtitles whose form carries the speaker's affect. Text carries meaning; form carries feeling; and the whole chain that measures it runs on the machine in front of you.

Same words, different shapes

Most subtitles carry only what was said. Typography is treated as a neutral medium for legibility and the emotion is left to the viewer to reconstruct. I run the hypothesis the other way: read the face and the voice, decide what emotion is happening right now, and type the subtitle in a form that carries it.

The Korean line 괜찮아 — it's fine — is a different utterance when the letters tremble on top of anger, slump on top of sadness, or bounce on top of joy. Anger shakes, sadness slumps, joy bounces. The way real speech already works, made visible.

The design does not change inside a breath

Even if the speaker's face shifts mid-sentence, the subtitle's design holds. The next utterance gets a fresh decision, and that is the only point at which I allow anything to change.

My reason is a reading constraint rather than a technical one. A subtitle whose form mutates inside one breath is unreadable, so stability beats accuracy: the cost of a design that is wrong but stable is far smaller than the cost of one that flickers. It is a reading artifact first and an instrument second.

Affect is more than one number

Categorical labels on their own collapse about eighty per cent of everyday speech into neutral, which is a useless answer. So I keep three representations side by side rather than reducing them to one.

Eight categories come from Ekman's basic emotions plus contempt: anger, contempt, disgust, fear, happiness, neutral, sadness, surprise. A continuous valence and arousal pair comes from Russell's circumplex, and its four quadrants set the mood layer of the design — excited, tense, depressed or content. A scalar intensity rides alongside both. Plutchik's dyads are reserved for a later version; for now adjacent presets cross-fade over two hundred milliseconds instead.

Form is amplitude, not just category

Strong anger shakes wider; soft anger trembles. Same category, different intensity — and letter spacing, motion frequency, glow radius and weight all scale with it rather than switching between two states.

The mapping from intensity to amplitude uses an ease-out, one minus the square of one minus the intensity. I chose that curve so that weak expressions remain legible, with a two-pixel tremor still detectable, while a strong expression reaches a hundred and sixty per cent of the preset's base amplitude. The full range runs from a one-pixel tremor to a thirty-two-pixel shake.

A subtitle expresses the utterance, not the speaker

The same person can produce two utterances and get two designs. emotype never labels a person as the angry one; it dresses each utterance in a form and then forgets.

I enforce that in the data model rather than promising it in the documentation. A face track ID never inherits an emotion, and when a track breaks the new one starts emotion-blank. Track IDs are never persisted across sessions at all.

The whole speech chain runs on the Mac

Streaming Silero VAD segments the microphone into utterances through VADIterator at a sixteen-kilohertz, five-hundred-and-twelve-sample window — far more responsive than the batch alternative, and the only pattern that yields low end-of-utterance latency. Each segment then goes to mlx-whisper.

Apple MLX with Metal and unified memory transcribes about ten seconds of speech in roughly six tenths of a second on M-series silicon using whisper-large-v3-turbo, with Korean word error rate within one per cent of full large-v3. No audio leaves the machine unless the user explicitly switches provider.

The face side is equally compact: MediaPipe BlazeFace finds the face, and HSEmotion's ENet-B0 8 V/A MTL model — sixteen megabytes of ONNX — emits both the eight-class logits and the valence-arousal pair from a single forward pass.

The cloud path is opt-in and behaves like it

Google STT v2 and the OpenAI Whisper API are both available, and I made neither reachable without a deliberate install and a deliberate switch. Credentials live in a file created with 0600 permissions, and the loader masks every field in its representation so a stray log line cannot leak a key.

When the provider is switched the router validates the credential, turns the lamp green on a passing healthcheck and red on an auth or network failure, and falls back to local so that a missing key never silently breaks transcription. Sending audio off the device requires consent, and I say so in the project's own ethics section.

A subtitle window you can put anywhere

The overlay is a frameless, always-on-top window that can be dragged to any position on any monitor. Locking it makes it click-through, so it stops intercepting the mouse and simply sits over whatever is underneath.

Multi-monitor positions persist between runs, and if a saved rectangle ends up off-screen on a smaller setup it snaps back to bottom-centre rather than disappearing. Long Korean utterances wrap at the render width using glyph advances, and the per-character motion stagger advances monotonically across the line break so that the movement reads as continuous even when the line does not.

Three rules that keep the pipeline honest

Queues for data, signals for UI. Bounded queues carry cross-thread payloads with backpressure; Qt signals carry UI notifications and are allowed to drop. I never alias the two, because a dropped frame and a dropped utterance are not the same kind of loss.

Time is monotonic. Every timestamp is a monotonic nanosecond count. Wall clock is forbidden outright, because device hot-swap, daylight saving and NTP corrections would silently corrupt subtitle ordering.

Final, not partial. Speech-to-text speaks once per VAD segment. Partial transcriptions would force the design to re-decide mid-utterance, which is exactly what the first principle forbids.

The model is a hypothesis, not the truth

I state the limits of my own instrument before anyone else can. HSEmotion is biased toward Western expressions and toward AffectNet's collection conditions; Korean faces, masks and non-prototypical expressions degrade the signal sharply.

So I declare the tool to be for expression and not for diagnosis. Nothing is written to disk, no track ever inherits an emotion, and hiring, medical screening and any decision-bearing context are ruled out explicitly. Anyone building on it is asked to keep those constraints visible to their own users. I describe the project as alpha and name its rough edges rather than hiding them.

Giving a channel back that captioning threw away

Speech carries two channels at once: what is said and how it is said. Writing keeps the first and discards the second, and captioning — the technology that makes speech available to people who cannot hear it — has inherited that loss completely, so a caption delivers content with the affect stripped out.

emotype puts the second channel back, and does the measuring on the listener's own machine with nothing written down afterwards. That combination is the point. A system that reads your face is precisely the system you would least want running on somebody else's server, and this one does not need to.