I build the exact same system, but for (mandarin, simplified) Chinese which i'm learning.
Wanted to create such a system for a while, but it's a lot of hooking up the correct libs and making a UI etc. never found the energy.
Thanks to 'ai' I was able to do this finally, think more people needed this push :-)
It's web-based and can be self-hosted in a docker.