There is an import feature on Anki that allows the user to import their CSV files saved in UTF-8 encoding, which the program later converts to .akpg files.
I would like to add sounds (ideally .mp3 audio) to each flashcard of my deck, which doesn't seem possible using those CSV files.
Is there a solution to this issue that does not involve programmatically generating the .apkg? And if not, how can I write a program to do so (preferably in Java)?
As far as I know (and used) you can just:
That should be enough to get your audio played during learning.
You can then export the deck having "with media" option checked to have it packaged nicely into .apkg to use it elsewhere (import is intelligent enough to rename imported media files so users of such a package need not to worry about name collisions).
I'm going to go out on a limb here and assume that you are attempting to add pronunciations to a language-focused deck. If this is the case, you could sidestep your problem using the AwesomeTTS Anki addon. This addon allows you to bulk generate sound files based on a field in existing cards, using a number of text-to-speech services.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With