I have finally got round to writing an addon for Anki that allows the creation of audio cards without cutting up the audio, so the cards remain adjustable within Anki.
Addon: LINK
Preconfigured deck: LINK
I have only tested it on Linux, but it should also work on Win/Mac with any luck if I have copied the relevant bits from Anki's source correctly.
For now the user must manually extract audio/subs tracks from the raw file (e.g. using mkvtools). See the placeholder card in the above preconfigured deck for further instructions.
It seems to work OK though it hasn't been through heavy testing yet. Suggestions welcome.
Edit: just discovered that it crashed on empty lines. Updated
Edit: more info:
Deck fields:
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 a clip from file blah01.aac consisting of lines 120 and 121 from the corresponding subtitles file (required to be blah01.ass), with the start and end timings padded by 0.1s.
Subs: Subtitle text as specified in ClipInfo. Auto-updates if empty or when extra-subs-lines has been adjusted and this field has not been edited (so as not to lose info).
Audio: clipinfo:audio <- this exact string must appear somewhere on the card to get the audio to play.
FrontNotes: Use this field to put extra info on the front of the card (hints, etc)
BackNotes: Use this field to put extra info on the back of the card.
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 (to be found in the Anki/addons/ezclips directory) with the audio filename and capture the output to a file. Example:
ezgen blah01.aac > temp.tsv
(3) Import the resulting tsv file into the EZClips deck. The fields are set up to make this easy.
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.
Edit: location of ezgen script
Addon: LINK
Preconfigured deck: LINK
I have only tested it on Linux, but it should also work on Win/Mac with any luck if I have copied the relevant bits from Anki's source correctly.
For now the user must manually extract audio/subs tracks from the raw file (e.g. using mkvtools). See the placeholder card in the above preconfigured deck for further instructions.
It seems to work OK though it hasn't been through heavy testing yet. Suggestions welcome.
Edit: just discovered that it crashed on empty lines. Updated

Edit: more info:
Deck fields:
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 a clip from file blah01.aac consisting of lines 120 and 121 from the corresponding subtitles file (required to be blah01.ass), with the start and end timings padded by 0.1s.
Subs: Subtitle text as specified in ClipInfo. Auto-updates if empty or when extra-subs-lines has been adjusted and this field has not been edited (so as not to lose info).
Audio: clipinfo:audio <- this exact string must appear somewhere on the card to get the audio to play.
FrontNotes: Use this field to put extra info on the front of the card (hints, etc)
BackNotes: Use this field to put extra info on the back of the card.
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 (to be found in the Anki/addons/ezclips directory) with the audio filename and capture the output to a file. Example:
ezgen blah01.aac > temp.tsv
(3) Import the resulting tsv file into the EZClips deck. The fields are set up to make this easy.
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.
Edit: location of ezgen script
Edited: 2015-08-23, 6:03 am


![[Image: Q3XYMC6.png]](http://i.imgur.com/Q3XYMC6.png)
