cskillsanki-import
github ↗

01Dùng khi

Bạn có file thẻ (thường từ /anki-chunks cards) và muốn thêm thẳng vào Anki, kèm phiên âm IPA kiểu Mỹ và audio Google Cloud TTS

02Lệnh

  • /anki-import <file>

    Thêm thẻ vào deck mặc định

  • /anki-import <file> <deck>

    Thêm vào deck khác

  • /anki-import <file> test

    Chỉ thử 2 thẻ đầu

  • /anki-import <file> tsv

    Cách cũ: xuất file tsv, không IPA, không audio

03Các bước

  1. 1Mở Anki, cài add-on AnkiConnect (mã 2055492159)
  2. 2Chạy lệnh. Skill đọc file, bỏ qua thẻ đã có trong deck
  3. 3Skill thêm IPA cho từng cụm từ
  4. 4Mỗi thẻ mới có một file mp3, lưu cache nên chạy lại không tốn tiền
  5. 5Skill báo đã thêm bao nhiêu thẻ, vào deck nào

04Ví dụ

Một thẻ

input
12. prove one's mettle After the outage, the new engineer **proved her mettle** by fixing it alone. [Idiomatic Expression - C1] Show that you are brave or able when it is hard. Nghĩa tiếng Việt: chứng tỏ bản lĩnh
output

05Lưu ý

  • Cần GOOGLE_TTS_PROJECT (gcloud) hoặc GOOGLE_TTS_API_KEY trong ~/.zshrc
  • Đổi giọng bằng GOOGLE_TTS_VOICE
view on github ↗