After switching from one desktop OS to others in rapid succession, my cards have lost associations with corresponding audio files. Also, adding cards via Yomitan generates content for the audio field, but the association is not actually made, so no audio plays (it plays fine when manually added to other fields).
“Check media” lists those files as unused, and none as missing.
After spending more than 10 hours on the problem, I tried to just delete everything and start a new deck, but even that did not fix the issue. I don’t even know whether this is a problem with my templates, yomitan settings or something else. Any ideas?
If it’s a Yomitan issue, report on their repo: GitHub - yomidevs/yomitan: Pop-up dictionary browser extension for language learning. Successor to Yomichan.
Go to the issues tab, and start a new issue. Or you can contact people on their discord listed on the website, they’ll help you troubleshoot the issue.
Found the problem. The back template I used for my card type had <!–{{Audio}}–> instead of just {{Audio}}, so amending that fixed it and audio plays again. My card templates came from the itazuraneko guide: anki guide
It had nothing to do with associations between cards and files, and the unused files were presumably from shared decks I had used in the past, but somehow the files remained even though I deleted those decks long ago (just guessing). I have now deleted those files, nothing shows up as unused or missing, and everything is working.
Yes, there are a few decks that used that as a workaround to hide the audio buttons. Now that Anki correctly respects the commenting, those templates need to be updated.
That’s correct. When you delete notes, Anki doesn’t immediately delete the media. Running Check Media regularly will help you clean that out.