Based on 0 ratings:
Sign in to rate
< Back
EZClips - create editable audio cards from subtitles
<10kB. Updated 2016-03-28.
Description
Addon to support the creation of audio cards from subtitles that remain editable within Anki.
The addon assumes the presence of the following note fields, as in this preconfigured shared deck:
ClipInfo: audio-filename|first-subs-line|extra-subs-lines|pad-start-time|pad-end-time
For example blah01.aac|120|1|0.1|0.1 describes an audio clip from file blah01.aac spanning lines 120 and 121 from the corresponding subtitles file (required to be blah01.ass), with the start and end timings padded by 0.1 seconds.
Subs: Subtitle text as specified in ClipInfo. Auto-updates when you tab out of the ClipInfo field, so any edits to this field will be lost. Edit the underlying .ass file if you need to fix typos etc in the subs.
Audio: The exact string "clipinfo:audio" must appear somewhere on the card for the audio to play. Generated cards put it here.
FrontNotes: Optional info to show on the front of the card (hints, etc), empty by default.
BackNotes: Optional info to show on the back of the card (definitions, etc), empty by default.
Usage:
(1) Use mkvextract from MKVToolNix to extract the audio and subs tracks from a video file. Example:
mkvextract tracks "Blah Episode 01.mkv" 1:blah01.aac 2:blah01.ass
Put the resulting files in the Anki/addons/ezclips directory.
(2) Run the ezgen script with the audio filename(s) and capture the output to a file. Example:
./ezgen blah01.aac blah02.aac blah03.aac > temp.tsv
(3) Import the resulting tsv file into the deck.
Limitations:
Any audio (or even video) format supported by mplayer, but only .ass format subtitles atm.
Only one set of subs, so probably only useful for more advanced learners.
Tested on Linux (Ubuntu). Should work on Win/Mac too if I copied the relevant bits of Anki's source correctly, but not as yet tested.
Please use this thread on koohii.com for feedback/suggestions:
http://forum.koohii.com/viewtopic.php?pid=234680
Enjoy!
anotherjohn
PS: This version uses 1-based line numbers on the cards, and replaces the earlier version released 2 days ago which used 0-based line numbers, which was found to be annoying after more extensive testing. Cards created with the earlier version will either have to be manually edited to increase the line numbers by 1, or deleted and re-imported. Sorry about that.
Updates:
28-mar-2016: Belated additional fix for Win (untested).
23-aug-2015: Minor fixes (hopefully) for Win/Mac users - thanks to koohii user Awaken for the feedback.
Download
As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.To download this add-on, please copy and paste the following code into the desktop program:
292366041
If you were linked to this page from the internet, please go to the
Tools menu
and then Add-ons>Browse & Install to paste in the code.
