The Day an AI Raised an AI, and I Became the Lab Assistant Shouting Klingon

Notes from building a Klingon speech recognizer.

By Takahiro Yonemura, Ph.D. (Engineering)

nuqneH (What do you want?)

“Kapla!” “Haja!”

An engineer who somehow squeaked through a doctorate is shouting alien words at a smartphone and a PC emulator. It is not a dignified sight. And all the screen gives back is one line: “Recognition on hold.”

“Oh, come on. That one didn’t work either?”

I was building the free Klingon edition of Hitokoto Translate, my series of offline translation apps for phones. You speak the language of Star Trek, and the app translates it into Japanese or English, and back again. That was the plan, anyway.

Let me give away the ending first.

Out of 38 real human recordings the model never trained on, the number it transcribed perfectly:

5 → 23 → 24 → 25

That’s a long way from perfect. But somewhere along the way to those numbers, I stopped being the one giving orders to the AI (OpenAI GPT6 Astra) and became its lab assistant, handing over recordings and ideas. This is the story of how that happened.

Chapter 1: If it doesn’t exist, build it.

A free trial app is a chance to have some fun. I didn’t want it to just read Klingon aloud. I wanted it to understand Klingon when you speak it, and translate that too. Even if it only handled 20 or 30 phrases, that would make it a lot more fun to play with.

The problem was that I couldn’t find a recognition model I could just drop in. My requirements: it had to run on a smartphone, fully offline, and reasonably fast. And I didn’t want simple pattern matching against a fixed word list. I wanted it to handle phrases it had never seen put together that way.

The real goal was the famous line:

Heghlu’meH QaQ jajvam. (Today is a good day to die.)

What started as a joke project had quietly turned into serious speech recognition work. Nothing out there fit, so I’d build it: a little “brain” that could understand Klingon from sound alone.

Chapter 2: Borrow the ears, grow the brain.

Training a giant speech recognizer from scratch wasn’t realistic. So instead, I borrowed “ears” from existing large models and grew only a small “brain” to read Klingon.

  • Borrowed ear #1: acoustic features from SenseVoiceSmall
  • Borrowed ear #2: phoneme information from ZIPA Large (a phoneme is the smallest unit of sound that tells words apart)

Neither model knows any Klingon. But both are good at hearing differences between sounds. Their outputs are aligned in time, bundled together, and passed to a small model that reads them. The weights of the two borrowed models stayed frozen the whole time.

The brain itself has two parts:

  • The reader (about 1.29 million parameters): builds text from the sound features, using CTC. With CTC, nobody has to mark which letter happens at which second of a recording. The model learns that from pairs of audio and the correct text. It doesn’t pick an answer from a list of fixed phrases. It writes out the text itself.
  • The character language model (about 400,000 parameters): never hears anything. It learns how Klingon spellings tend to fit together, and helps pick the right candidate when the sound alone is ambiguous. Its training material included Klingon sentences from Tatoeba, the example-sentence site.

Parameters are the internal numbers a model adjusts as it learns. I came up with the rough idea. The agent AI brainstormed with me and worked out the details, and we settled them through a lot of back-and-forth.

Chapter 3: Synthetic voices make imperfect teachers.

It didn’t work at first. The model could recognize synthetic voices just fine, then completely fell apart on real human speech.

So I asked: “The app can already read Klingon aloud. Can’t we just use that as training material?”

The basic method was a loop:

Klingon text → generate synthetic speech → train on each pair of “audio + original text”

Because we already knew the text behind each recording, we could tell the model, “This sound is spelled like this.” We also varied the volume, speed, and background noise, and added more voices, so the model wouldn’t get too used to any one sound.

There were two kinds of synthetic voice, and neither was a perfect teacher:

  • The app’s own reader stitches together published recordings of Klingon syllables. There was no neural voice model built for Klingon to start with.
  • Kokoro is a speech-generation AI. You can tell it how to pronounce things and get Klingon-like speech in several voices, but the language’s unusual sounds come out as approximations.

Real human voices filled the gaps synthetic speech couldn’t. Before augmentation, the public recordings came to 182 clips, about 10 minutes 39 seconds in total: 44 from Tatoeba, 31 from RhinoSpike, 6 from the Klingon Language Institute, and 101 from deznil. On top of that, we used 384 short syllable clips cut from recordings.

Then my own voice joined in.

“Kapla.” “Haja.” And “tlhIngan Hol vIjatlh” (I speak Klingon).

When I pronounced things by following Japanese katakana, the second half came out as different letters. “Maybe we just have to check it against a dictionary and correct it?” I suggested. Another order from me.

For the extra training round on November 7, my voice amounted to exactly one recording. We turned it into 9 examples by changing the volume, speed, and noise. That’s 9 versions of one clip, not 9 people. We also made 108 synthetic examples imitating a Japanese-style accent, and trained on all of it together with the existing 2,193 examples. The existing set ran about 1 hour 31 minutes including augmented clips and silence, and about 1 hour 34 minutes with the new material, 2,310 examples in all. That’s how long one pass through the material takes, not training time, and not how much data the borrowed models were originally trained on.

After that, the model got my recording completely right, even before any dictionary correction.

But reading a voice you trained on and reading a new voice are two different things. So, back to the scoreboard from the start:

Version

Perfect transcriptions out of 38

v20 (before adding lots of human speech)

5

v21 (lots of human speech added)

23

Better candidate selection

24

Adapted to my accent (Nov 7)

25

The biggest jump came from adding a lot more human speech. Adapting to my voice only gained one more. Note that v20 already used some human recordings, so this isn’t the score of a “synthetic-only first model.”

These 38 recordings were also checked again and again during development, and some come from speakers who appear elsewhere in the training data. This is not an accuracy figure for new speakers in general.

Chapter 4: When “konnichiwa” became Klingon.

The extra training had a side effect. The model adapted to the new accent started getting wrong some recordings it used to get right.

We fixed this in two steps. First, we had it review the old material alongside the new, and kept its output from drifting too far from the original model. That still left some damage, so in the end we ran the original reader and the adapted one together.

To choose between candidates, we also used boQwI’, a free Klingon dictionary, on top of how well each candidate matched the sound. We pulled out spellings, parts of speech, prefixes and suffixes, and checked whether a candidate could be explained as a valid Klingon word form. But “close to a dictionary word” didn’t automatically mean “correct.” That could “fix” the right answer into a plausible wrong one. And no, we didn’t make the model memorize the dictionary’s Japanese translations.

After all that work, we put the model into the app, and a new problem showed up:

It treated the Japanese word “konnichiwa” (hello) as Klingon.

I’m a native Japanese speaker. I’m pretty sure my “konnichiwa” is fine.

When we checked the recordings, the Japanese recognizer had heard it correctly all four times. The culprit was the step before it, the part that decides which language you’re speaking. The old version, once it had decided “Klingon,” moved on without ever looking at what the Japanese recognizer had heard.

The new version weighs how confident the Japanese and English recognizers are, together with the acoustic features. This meant training one more thing: a small language classifier, separate from the model that reads text.

We split the tests like this. For the Japanese phrases I recorded on November 9, the first take of each went into training and the second into testing. Four new Klingon recordings from the same day were kept out of training entirely and only tested after the classifier was finalized. All four were identified as Klingon, and the Android app produced the right text.

Under the Hood: What was actually trained.

Part

What it does/what changed

Borrowed ears

Acoustic part of SenseVoiceSmall and ZIPA Large. Weights frozen, used only to extract features

Reader

About 1.29M parameters. A bidirectional recurrent model taking 722-dimensional time-series features. Trained with CTC on 28 output classes

Character language model

About 400K parameters. Re-scores text candidates. Not an LLM

Accent adaptation

Further training starting from the v21 reader weights. 9 examples from one recording + 108 synthetic + 2,193 existing. Ran 1,600 updates, kept the weights from update 800

Keeping old skills

Retrained on old material, plus regularization using the frozen original model as a teacher so the output distribution wouldn’t drift far. The original and adapted models then run together

Dictionary and candidate selection

Helper processing using word forms, acoustic scores, and word sequences. Not everything is done by neural models

Language detection

In v31, it combines acoustic detection with the confidence of the Japanese and English recognizers. A trained classifier with 8 coefficients plus a bias. No large speech model was retrained

Chapter 5: Was this your idea?

The project was full of methods I never asked for. So I asked the agent AI: did you come up with this way of training? Was all that trial and error yours?

“I used existing techniques, worked out an architecture and training approach that fit these tough constraints, turned it into code, and kept fixing it as I watched the results.”

It didn’t claim to have invented transfer learning or fine-tuning. It chose existing techniques on its own, fit them to this project’s constraints, and turned them into working code and experiments.

The more I asked, the more I learned. More training doesn’t always mean a better model, it told me. The extra training on my accent ran 1,600 updates, but the weights it kept were from update 800, picked using a separate development set. The most-trained version isn’t always the best one. I checked that decision against the saved logs, too.

Then it said something oddly thoughtful:

“My own insides didn’t change from this training. I raised a separate, smaller AI. That’s the relationship.”

Well, obviously. But I’ll let that slide.

A conversational AI built the training data (my voice included), the code and the tests, ran them over and over, and rewrote the weights of a different model on my PC. That’s why I call this “an AI raising an AI.”

Chapter 6: Sending the little AI out into the world

I released the recognition models on GitHub on November 8, 2026. There are five ONNX models, along with the vocabulary, settings, and input/output specs. ONNX is a format for running trained models in other environments.

The release covers the model files only, not the app’s training scripts. To use them, you’ll need to implement the audio preprocessing and text decoding described in the docs. The improved language detection came later and isn’t in the first release either.

In the app, offline recognition, translation, and speech now run as one chain. The November 9 build picked the right language and produced the right text on all 8 of my test utterances in an Android emulator. On my old daily phone, an AQUOS sense3 (SH-M12), the results were about the same, apart from speed.

Of course, it won’t work 100% of the time for every voice. Still, an idea that came out of a conversation is now a trained model anyone can download. If someone takes it into their own next experiment, even better.

Qapla’ (Success!): So who was the teacher?

Looking back, I spent most of this project complaining that it wouldn’t understand me. But those complaints were user requirements, and my recordings were experimental data. The AI took them, designed the system, wrote the code, compared the failures, and fixed things one at a time.

Human as teacher, AI as assistant. Or the other way around. In this project, the roles kept switching back and forth.

Somewhere in those model weights is my clumsy “Kapla!” Maybe this is what the future looks like when it finally shows up.

End Credits

Role

Credit

Concept, requests and heckling

Takahiro Yonemura

Voice cast (“Kapla!”)

Takahiro Yonemura

Design, code, training and testing

Agent AI (OpenAI GPT6 Astra)

Lent us their ears

SenseVoiceSmall, ZIPA Large

Synthetic voices

Kokoro, the app’s syllable-based reader

Human voices

Tatoeba, RhinoSpike, Klingon Language Institute, deznil

Dictionary

boQwI’

Example sentences

Tatoeba

Figure: The actual app screen.

The app recognizes Qapla' and translates it as Good luck in English auto mode.

The app in English UI auto mode, recognizing a recording of “Qapla'” and translating it as “Good luck.” This is version 1.3.4. The recording was fed into the app’s input path on a headless Android emulator, so this is not a photo of a real phone. In the English UI, the app automatically tells English and Klingon apart.

AI disclosure: I used AI to translate this article from Japanese into English. Codex assisted with preparing the HackerNoon draft and its summary.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.