This is a chrome extension that aims to add a selected word to Anki inventory for you to learn Chinese words.
The codes use Google Translate API for obtaining the translation of a word as well as Text-to-Speech API for the pinyin, and mostly (99%) are generated by AI.
- Clone the code to your local
- Download Anki client app and AnkiConnect (Don't forget to restart Anki after installing Add-Ons)
- Obtain an API key for Google Translate API, Text-to-Speech API and paste it into background.js file (Do not forget "enable" Google Translate API, Text-to-Speech API)
- Create a new Deck "Chinese" in Anki
- Open chrome://extensions and click "Load unpacked", then select the directory of the codes
- Select a Chinese word on Chrome and a popup icon will show up just next to it.
- Then, automatically the word information is registered in Anki's "Chinese" deck.
- Please do not reach out to me if you find any defects or problems, please ask your AI for the support :)