A script to generate audio for anki cards using COEROINK
| .gitignore | added requirements.txt | |
| anki_gen.py | change filenames to hashes, fixes 'too long file name' error | |
| README.org | updated readme | |
| requirements.txt | added requirements.txt | |
anki-gen - A script to generate audio for anki cards using COEROINK
Why?
How do I use it?
- Download Coeroink & install it
- Download コシラズ & install it in the coeroink speakers folder.
-
Download this script:
git clone https://codeberg.org/aeru/anki-gen
- We are going to need to do some quick settings, you should have Anki and the AnkiConnect plugin
-
In
anki-gen.py, editCOEROING_ENGINE_PATH = os.path.expanduser("~/downloads/COEIROINK_LINUX_CPU_v.2.7.1/engine/engine") COEROINK_URL = "http://localhost:50032/" anki_config = { "url":"http://localhost:8765/", "deck":"日本語::Mine", "fields": ["Word Audio:", "Sentence Audio:"], "extra": ["is:suspended","-tag:name"], }COEROING_ENGINE_PATHPath to your Coeroink install +/engine/engine- in
anki_configdeckto the name of your anki deck - in
anki_configfieldsto the fields that have audio (note: for it to properly work you need to have them be named with a space in between eg. your sentence "Sentence" and the audio field for it "Sentence Audio") - in
anki_configextrto other query options, see Anki Wiki: Searching
- if you have nix installed, do
chmod +x anki_gen.py, otherwise you need python3, and requests and pydub - run
./anki-gen generate-all --speaker コシラズ --style ふきげん -o audio