Fixes for two common audio issues

I find WaniKani’s pronunciation audios very helpful, so I have autoplay toggled on for them. However, they are often cut off or delayed, diminishing my experience. I could not find a solution online, but noticed that others have had similar issues, so I wanted to share mine here. I use Firefox and Tampermonkey. YMMV, but I hope it’s helpful.

Problem 1: Delayed Autoplay Audio Playback

The first part of my script addresses this. It builds off of this post by @flippfuzz, thank you. It fetches and caches the audio on-prompt rather than post-answer, mitigating the latency if it has yet to be downloaded.

Problem 2: Audio Cutting Off at the Start of Playback

This is not WaniKani specific (see this thread), but can be particularly disruptive here. As noted in the link by @YandrosTheSane and @polv, playing media elsewhere seems to fix it. I found that without media playback, my Bluetooth signal would idle and occasionally time out, triggering the problem. My script keeps it active, resolving the issue.


Here are the links to my script: direct download | git repo

4 Likes