8000 GitHub - fugashy/ankihelper: Command tool to support deck creation for learning application anki.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Command tool to support deck creation for learning application anki.

License

Notifications You must be signed in to change notification settings

fugashy/ankihelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ankihelper

Command tool to support deck creation for learning application anki.

How to install

cd /path/to/this/package
pip install .

How to use

Create a deck from a voice data

  • Pattern A

    When using a audio file that contain long talks

    ankihelper audio /path/to/audio to-script
    ankihelper table from-audio-vtt-pair /path/to/audio /tmp/script/AUDIO_FILENAME.vtt
    ankihelper table add-trans /tmp/table.csv
    ankihelper deck from-table /tmp/table-with-trans.csv
  • Pattern B

    When using unit-by-unit audio data such as that included in learning materials.

    # clip all audio data (the output path is /tmp/clip by default)
    for f in /path/to/dir/contain/audio/data/*.mp3; do ankihelper audio "$f" clip-per-silence; done
    
    # Move audio data for learning to another directory, etc.
    
    # create scripts with each audio files
    for f in /tmp/cliped/*.mp3; do ankihelper audio "$f" to-script; done
    
    # create table from the audio clips and the scripts(the output path is /tmp/table.csv)
    ankihelper table from-audio-vtt-pairs /tmp/cliped /tmp/script
    
    # remove duplicated rows
    ankihelper table drop-duplocates /tmp/table.csv
    
    # add a column that contain translations
    ankihelper table add-trans /tmp/table.csv-dropped.csv
    
    # split table
    ankihelper table split /tmp/table-with-trans.csv
    
    # create decks
    for f in /tmp/chunk_df/*.csv; do ankihelper deck from-table "$f" --output_filepath "$f".apkg; done

Create a deck from a table

  • Pattern A

    From a csv file that have columns "en" and "jp"

    # create and add an audio columm
    ankihelper table add-audio /path/to/csvfile
    
    # create deck (output path: /tmp/table.apkg)
    ankihelper deck from-table /tmp/table-with-audio.csv
  • Pattern B

    From a csv file that have a column "en"

    ankihelper table add-trans /path/to/csvfile
    ankihelper table add-audio /path/to/table-with-trans
    ankihelper deck from-table /tmp/table-with-audio.csv

Create a deck from your English diary

T.B.D

About

Command tool to support deck creation for learning application anki.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0