Skip to content

Creating Anki Deck for studying chinese vocabulary.

Notifications You must be signed in to change notification settings

jfr2102/chinese-anki-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chinese-anki-gen

Generate Anki Deck from chinese audio files.

Example Card:

Example Card

Steps in the script:

  1. Get the chinese character by whisper model
  2. get pinyin
  3. get translation to target language
  4. get stroke order gifs for each character of the word
  5. pack everything into a flashcard
  6. export deck of vocabulary including the all cards

The input requires a single audio file per word. You can split audio files by words e.g. with mp3split

mp3splt -s -d $targetDir -p th=-54,shots=10 $FileName

Make manual overwrites where needed to either the chinese character, pinyin, or translation by setting the overwrite dicitionary with the file name for which you want to override as key.

# use these chinese chars instead of the result from text2speech model
overwrite_char = {
    "input/file_1.mp3" : "日本",
    "input/file_2.mp3" : "人",
}

About

Creating Anki Deck for studying chinese vocabulary.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages