https://github.com/ethanngit/mandarinankigenerator
Generate Anki decks about any topic. ZH -> EN.
https://github.com/ethanngit/mandarinankigenerator
ai anki artificial-intelligence chinese flashcards mandarin
Last synced: 6 months ago
JSON representation
Generate Anki decks about any topic. ZH -> EN.
- Host: GitHub
- URL: https://github.com/ethanngit/mandarinankigenerator
- Owner: EthanNgit
- License: mit
- Created: 2025-04-04T19:57:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-06T18:09:38.000Z (6 months ago)
- Last Synced: 2025-04-09T18:18:39.459Z (6 months ago)
- Topics: ai, anki, artificial-intelligence, chinese, flashcards, mandarin
- Language: Kotlin
- Homepage:
- Size: 157 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🧠 Mandarin Anki Deck Generator
Create personalized Mandarin ➝ English Anki decks on *any* topic — powered by the latest AI models, seamless text-to-speech, and flexible pinyin support.
---
## 🚀 What Is This?
This project lets you easily generate high-quality Anki decks with Mandarin vocabulary and English translations, with support for:
- 🎯 *Your* topics and prompts
- 💬 AI-powered content generation (currently supports OpenAI, DeepSeek, and Gemini)
- 🔊 Audio pronunciation (currently supports Google TTS or Azure TTS)
- 🈶 Customizable pinyin formats (numbered, marked, and zhuyin)---
## 🧩 How It Works
The system is built with **Docker Compose** and made up of 3 main microservices working together:
### 1. 🖥️ The Server (Deck Engine)
This is the brain of the system. It connects everything together:
- Talks to the AI model to generate vocabulary and sentences
- Calls the pinyin converter to get your preferred pinyin format
- Integrates TTS audio into the final Anki cards
- Outputs a `.apkg` file ready to import into Anki### 2. 🔊 TTS Service
Add native-like pronunciation to your flashcards!
- Supports the use of **Google Text-to-Speech** or **Azure TTS**
- Generates clean `.wav` files for each vocabulary item efficiently by slicing batch api requests
- Automatically links audio to the Anki card### 3. 🀄 Pinyin Converter
Different learners prefer different pinyin styles. This service makes that easy:
- Convert Mandarin to pinyin in multiple formats (e.g., numbered tones, tone marks, no tones, zhuyin)
- Helps learners hear, see, and internalize pronunciation more effectively---
## 🛠️ Todo
1. Add client interface
2. Add more deck customization (themes)
3. Add grammar structure based cards and support
4. Tagging words for searching
5. Sharing decks
6. Expanding decks
7. Importing and improving decks
8. Explore ai tts options for better pronounciation