This is a minimal port of the add-on AnkiDacity which was made for the old Anki 2.0 (2012-2018). All the good parts are from the original author Tiago Barroso (Copyright 2015).
Use it at your own risk. It worked for me when I needed it - the last time I tested it was in 2023-03 with Anki 2.1.60 (qt6) and Anki 2.1.54 (qt5). Perhaps it's also useful to other people in the current state. No support. If you have improvements or bugfixes I can publish them here. You can notify me at in the support thread on the anki forum..
there's some info for workarounds in windows in this thread: https://forums.ankiweb.net/t/send-audio-clips-from-audacity-to-addcards-ankidacity-fork-official-thread/28416/4
You can open the add-on folder to pick the file "ankidacity.ny" via Main Mindow -> Tools -> Add-ons. In the add-on window click the button "View Files".
The original guide on installing and preparing Audacity is here. This guide was still mostly useful for me in 2023-03 though before I could use the AnkiDacity effect in Audacity I had to enable the plugin via "Effect -> Add/Remove Plugin".
Make sure to have ffmpeg in your PATH - for windows see e.g. here. I don't have a Mac so I have no idea how the permission system introduced over the last years affects this add-on.
# Configuration
- By default audio files are imported/inserted as "mp3".
- if you send more than one file per second you can set filenames to millisecond precision.
# Limitations
e.g.
- This add-on overwrites Editor.init which might limit compatibility with future versions and/or other add-ons. If you get strange errors don't forget this add-on. I have many add-ons installed and didn't get an error.
- Instead of converting after the export exporting as mp3 should be better. But a forum thread from 2007 says that audacity nyquist filters don't support exporting as mp3. So there's a workaround in this add-on with ffmpeg.
# License
AGPLv3
# Versions
- 2023-03-12 fix for qt6 (Anki 2.1.50 or newer), add support for converting to m4a (thanks @LukeLR).
- 2019-05-12 initial upload