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> testChỉ thử 2 thẻ đầu
/anki-import <file> tsvCách cũ: xuất file tsv, không IPA, không audio
03Các bước
- 1Mở Anki, cài add-on AnkiConnect (mã 2055492159)
- 2Chạy lệnh. Skill đọc file, bỏ qua thẻ đã có trong deck
- 3Skill thêm IPA cho từng cụm từ
- 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
- 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ặcGOOGLE_TTS_API_KEYtrong~/.zshrc - Đổi giọng bằng
GOOGLE_TTS_VOICE
view on github ↗