Voice Answers for WaniKani: Unofficial Tool

:warning: This is a third-party app and is not created by the WaniKani team. By using this, you understand that it can stop working at any time or be discontinued indefinitely.

:information_source: Reposting this with an updated name for the addon - it is now called “Voice for WaniKani: Unofficial Tool”. Thanks to the mods for guiding me through the process of getting the name updated.

Hey Everyone,

First a bit about me: When I originally started WK, I got to about level 30 and then decided to reset my account because I fell too far behind. As I was working through it a second time, I realized that one of the main reasons I wouldn’t get my reviews done was because typing out ~200 words a day (~100 meaning, ~100 reading) was making my hands hurt.

I also really didn’t want to be using a voice recognition program that would upload my voice samples to the cloud because I don’t trust that they’re not being used for nefarious purposes.

Recently, an idea struck me: With how good local AI voice models are getting, what if I could create a browser add-on that would let you dictate your WaniKani reviews and lessons while also respecting your privacy.

I looked at a few of the other solutions for this and none of them quite did what I was looking for.

And so “Voice Answers for WaniKani: Unofficial Tool” was born. The idea is simple:

  1. Install a browser add-on (Firefox, Firefox Mobile, or Chrome) from the add-on marketplace for your browser.
  2. Optional: Follow the guide in the plug-in repository to locally train a model specifically against your voice. For me, this improved correctness of the model output quite a bit.
  3. Do your reviews / lessons via voice input.

The guiding principles for the add-on is as follows:

  1. Private by default: It does not collect any information about you, all of the answer generation is done locally on your device. You don’t need any account to use the add-on.
  2. Blind generation: The add-on doesn’t look at the question you are being presented with, as that could skew the output towards an answer that you didn’t say. The only thing the add-on reads on the page is the question type (so it knows whether to generate English or Kana).

You can find the add-ons here including a detailed description and screenshots:

Firefox and Firefox on Android
Chrome

You can find the open-source implementation here.

If you want to do the optional step 2, there are instructions here. The easiest way to do this step is to point Claude or Copilot at a local clone of the repository and let it do most of the work for you (you still have to provide your voice samples locally, so it can run the training, but it will walk you through that). This step is completely optional - the add-ons work just fine with the default models - but if you’re getting the wrong answer text generated frequently, this significantly helps.

Note: Since the models don’t always get the words / kana right, I recommend using the “Fill in the answer box; I press enter” mode (which is the default). That way, if something is wrong, you can either select one of the alternatives presented or manually adjust the answer.

If you find any issues or have any suggestions, please leave them in this post or as a GitHub issue.

Cheers!

Super cool, I was always wondering if something like this was possible! I tried with Wisprflow but I couldn’t get the accuracy high enough - how accurate have you found this one?

@ricardo1 Thank you!

I included some statistics in the GitHub repo about accuracy - adding them here:

Answers Right reading among the choices
English: 25 words 25/25 (first choice 22/25)
Readings: 31 words, generic model 13/31
Readings: 31 words, fine-tuned on the author’s voice 24/31

With fine-tuning, it works well enough that I only have to correct it once in a while. Without fine-tuning, it will really depend on your voice and accent. I think my Japanese accent is pretty strong, so the Japanese recognition improved a lot with fine-tuning.

I have some more ideas on how to improve accuracy - will hopefully get some time to work on those soon.

Let me know how you find the accuracy and if you have any ideas on how to improve it :slight_smile: .

Update: version 0.4.9

Hey everyone! Quite a lot has changed since my first post (that was version 0.2.7), so here’s a roundup. Version 0.4.9 is now live on both Firefox / Firefox for Android and Chrome, and your browser should update to it automatically.

The guiding principles haven’t changed: speech recognition still runs entirely on your device, the add-on still makes no network requests, it still never looks at the question, and a wrong answer still goes in exactly as you said it.

Accuracy

The numbers in my earlier reply came from a pretty small test (25 English words, 31 readings), so I now also test every change against 300 recorded English meanings and 400 recorded readings of WaniKani items. All of these are my own recordings. Each cell is right answer first / right answer among the 3 choices, with the built-in models unless noted:

Recordings 0.2.7 (first post) 0.4.9 0.4.9 + WaniKani dictionary
English, 300 meanings (default fast model) 227 / 259 242 / 271 259 / 272
English, 300 meanings (accurate model) 246 / 281 248 / 286 263 / 288
Readings, 400 163 / 253 168 / 265 251 / 287
The 25 English words from my earlier reply (accurate) 22 / 25 22 / 25 22 / 25
The 31 readings from my earlier reply 13 / 13 12 / 13 13 / 14
The 31 readings, fine-tuned on my voice 18 / 24 19 / 25 n/a

The small sets barely moved: they’re short, and I recorded them with a pause before each word. The bigger sets show the real change, especially readings with the dictionary (63% right first, up from 41%). These tables also leave out the fix for lost first sounds (below), because every test recording has a pause first. When you start talking right away, that fix took readings from 118 to 170 right first out of 400.

Better recognition

  • English (the default “fast” model): the right answer comes first for 242 of 300 meanings, up from 227. Here’s what helped:
    • Alternatives can now differ in any word, not just the first, and are ranked by how likely the whole answer is.
    • Words that sound alike are offered as choices too (eye / I, tail / tale, son / sun).
    • A bare “and” or “so” ranks lower, so “hand” no longer comes out as “and”.
    • The model now runs at higher precision. That costs about 0.04 s more per answer and makes the download about 20 MB bigger.
  • Readings:
    • Each alternative is checked against your recording at three speeds, so the right reading is among the choices more often.
    • Impossible kana combinations are never offered (ゆゅ, んょ, っ before a vowel). None of WaniKani’s 6,924 readings is affected.
    • ず/づ and じ/ぢ sound the same, so the other spelling is offered as a choice too (つずく → つづく).
  • First sounds no longer get cut off: before, if you started talking right after pressing, a word could lose its first sound (“punishment” came out as “anishment”, ぼうそうぞく as “おうそ”). Now it doesn’t.
  • Ends of words are kept too: push-to-talk keeps recording for 0.2 s after you let go.
  • Say it again: if you record over an answer or tap Clear, that answer isn’t offered again for the question.
  • A hesitation (“um”) is never turned into an answer.

New options (all in Settings)

  • Answers offered: 1 to 5 choices, set separately for English and readings (the default is 3).
  • WaniKani dictionary (optional): answers that are a meaning or reading of any WaniKani item (any level, plus your own synonyms) come first. It only reorders what the model heard and never replaces it. It helps readings a lot: the right reading comes first for 251 of 400 instead of 168, and for meanings 259 of 300 instead of 242. The add-on itself still never goes online. You make the dictionary file once with a script in the repository and your own API token (about 15 requests), then pick it in the settings.
  • Ignore a wrong answer (optional): if you submitted the wrong choice by accident, press Escape or Backspace, or tap Ignore, while the answer is red. The question comes back unanswered and WaniKani doesn’t count the mistake. It works like Double-Check’s re-type and stays out of the way if you already use Double-Check.
  • Microphone: by default the mic now stays open between answers, so the start of your answer isn’t lost. The last fraction of a second is kept in memory, constantly overwritten, and is only used when you press. If you’d rather the mic only open while you hold the key or button, you can turn this off. The privacy policy describes exactly what happens.
  • Mic button side on phones: on touch screens the mic button is now on the left, where your thumb can reach it, with the choices and Submit / Next on that side too. You can move it back to the right if you prefer.
  • Activity log (optional, off by default): for those of you training your own models. It keeps a text log on your device: what was heard, which choice you picked, whether WaniKani marked it correct, and how long each question took. It never stores audio or the question, and it keeps at most 10,000 entries. A script in the repository reads an exported log and tells you which words were misheard, so you can record those and train on them.

For people fine-tuning

  • A full-precision English model is on the GitHub releases page if you’d rather trade some speed for accuracy (246 of 300 right first).
  • Custom model files made for earlier versions still work.

The full list of changes is in the CHANGELOG. As before, if you find any issues or have suggestions, post them here or open a GitHub issue.

Thank you!