AINotePro – AI Text, Image Recognition & Audio Generation for Anki
Generate AI-powered explanations, translations, example sentences, study materials, and spoken audio directly from your Anki notes.
AINotePro is a free, open-source Anki add-on that works with cloud AI services and locally hosted models. It reads content from your existing note fields and writes generated results into the fields you choose.
You can use AINotePro to explain vocabulary, translate sentences, understand images, generate several study fields at once, process notes in batches, create spoken audio, and transfer your saved prompts and audio profiles between computers.
1. Getting Started
- Open Anki and go to Browse.
- Select one or more notes.
- Choose AINotePro → Add Context to selected Field..., or open AINotePro from the note editor toolbar.
- Select the Text or Audio tab.
- Configure your AI provider or speech service.
- Choose the source and destination fields.
- Click Generate.
For text generation, AINotePro supports 13 provider presets: OpenAI, Anthropic, DeepSeek, OpenRouter, DashScope/Qwen, Moonshot/Kimi, Zhipu GLM, SiliconFlow, Groq, Gemini, llama.cpp, vLLM, and Ollama.
You can select or manually enter a model name, configure a compatible API endpoint, and adjust Temperature and Reasoning settings. Available Reasoning options include Off, Low, Medium, High, and Model Default. Actual support depends on your provider and model.
Local models can also be used through compatible servers, allowing text generation to remain within your own environment.
2. Easy Mode – Generate Text from One Field
Easy mode reads one source field and writes the generated result into one destination field. It is the simplest way to get started.
Example 1: Explain an English sentence
Suppose your Anki note contains:
Text: I was caught off guard by his question.
Explanation: (empty)
Select:
- Mode: Easy
- Source Field: Text
- Destination Field: Explanation
Enter this prompt:
"Explain the following English sentence in simple English: {Source Field}. Explain important expressions and provide one example."
Click Generate.
The Explanation field might become:
"Caught off guard" means being surprised or unprepared for something.
Example: "I was caught off guard when my manager asked me to give a presentation."
AINotePro inserts the generated explanation into the selected destination field.
Example 2: Translate a sentence
Your note contains:
Text: The meeting has been postponed.
Translation: (empty)
Select Text as the source field and Translation as the destination field.
Use this prompt:
"Translate the following sentence into natural Chinese. Return only the translation: {Source Field}"
Possible result:
Translation: 会议已经推迟了。
You can save frequently used instructions as named prompts, such as "English Explanation", "Chinese Translation", or "Vocabulary Examples", and reuse them later.
3. Image Recognition (OCR) – Learn from Images
Easy mode supports image recognition through compatible vision-capable AI models.
Unlike traditional OCR, a vision-language model may do more than recognize text. Depending on the model and prompt, it can describe images, translate signs, explain diagrams, and extract useful information.
Example 3: Understand a restaurant menu
Suppose your Anki note contains an image of a restaurant menu stored in Anki media.
Image: (restaurant menu picture)
Explanation: (empty)
Select:
- Mode: Easy
- Source Field: Image
- Destination Field: Explanation
- Image Recognition: Enabled
Choose an AI model and endpoint that support image input.
Use this prompt:
"Read the menu in the image. List the main dishes, translate their names into English, and explain unfamiliar food terms."
Click Generate.
The model can produce an English description of the dishes, including translated names and explanations.
Example 4: Explain a scientific diagram
Suppose your note contains a diagram of a biological cell.
Use this prompt:
"Explain the diagram in simple language. Identify the important labeled parts and describe their functions."
The model may identify the nucleus, mitochondria, cell membrane, and other visible components, then explain their functions.
Important notes about Image Recognition:
- Image Recognition is available in Easy mode only.
- Images must be stored in Anki media or supplied as supported embedded image data.
- Remote image URLs are not downloaded automatically.
- A compatible vision-capable model and endpoint are required.
- Image Recognition can be enabled with any Provider preset, including custom endpoints.
- If a model or endpoint explicitly rejects image input, AINotePro displays a warning and stops the remaining OCR requests.
The Provider name does not guarantee that a model supports images. Always select an endpoint that actually accepts image input.
4. Advanced Mode – Generate Multiple Fields Together
Advanced mode lets you select multiple source and destination fields using checkboxes.
It is useful when you want one AI request to generate several related outputs, such as a translation, explanation, and example sentence.
Example 5: Generate translation, explanation, and example
Suppose your note contains:
Text: She finally came to terms with the decision.
Translation: (empty)
Explanation: (empty)
Example: (empty)
Choose Advanced mode.
Select:
- Source Fields: Text
- Destination Fields: Translation, Explanation, Example
Enter an Advanced prompt with the following content:
Analyze this English sentence: {Text}
{OUT:Translation}
Translate the sentence into natural Chinese.
{OUT:Explanation}
Explain important expressions in simple English.
{OUT:Example}
Write one new example sentence using the most important expression.
Click Generate.
Possible results:
Translation: 她终于接受了这个决定。
Explanation: "Come to terms with" means to gradually accept a difficult or unpleasant situation.
Example: It took him several months to come to terms with the loss.
AINotePro validates the model's structured response and writes each result into its corresponding destination field.
Example 6: Combine multiple source fields
Suppose your note contains:
Word: resilient
Context: She remained resilient despite the setbacks.
Explanation: (empty)
Select:
- Source Fields: Word, Context
- Destination Fields: Explanation
Use this prompt:
Explain the meaning of this word in its context.
Word: {Word}
Context: {Context}
{OUT:Explanation}
Give a clear definition and explain how the word is used in the sentence.
The model can use information from both source fields to produce a more relevant explanation.
How Advanced prompts work
{Text} inserts the content of the source field named Text.
{Word} inserts the content of the source field named Word.
{OUT:Translation} declares Translation as an output field.
{OUT:Explanation} declares Explanation as an output field.
The selected source and destination fields must match the source placeholders and output declarations in the prompt.
Advanced mode does not support image recognition.
Batch Generation – Process Multiple Notes
Advanced mode also supports batch generation, allowing several notes to be processed in one model request.
The Batch Size setting controls the maximum number of notes per request:
- Default: 1
- Dropdown choices: 1–10
- Custom values: 1–99
Example 7: Generate explanations for 50 notes
Suppose you select 50 vocabulary notes in Anki Browse.
Choose Advanced mode, select the source and destination fields, and set Batch Size to 10.
AINotePro processes the notes in batches of up to 10.
If a batch of 10 produces only 8 valid results, AINotePro keeps those 8 and retries only the 2 missing results.
The add-on validates the returned content before updating Anki notes. It also supports Anki Undo and checks note data before writing.
Batch Size 1 preserves the original single-note behavior. Larger batch sizes may reduce API requests but require sufficient model context and output capacity.
For beginners, starting with Batch Size 1 is recommended.
5. Local Library Import and Export
AINotePro provides a unified Library for saving and transferring reusable configurations.
The Library contains:
- Saved Easy prompts
- Saved Advanced prompts
- Saved Audio Profiles, including voice and field settings
Example 8: Transfer prompts from your desktop to your laptop
Suppose you created three prompts:
- English Explanation
- Chinese Translation
- Vocabulary Analysis
You also saved an Audio Profile named "English Listening Practice".
To transfer them:
On your desktop computer:
- Save your prompts and Audio Profiles.
- Open the Text tab.
- Click Export.
- Save the Library JSON file.
On your laptop:
- Install AINotePro.
- Open the Text tab.
- Click Import.
- Select the exported JSON file.
Your saved prompts and Audio Profiles are imported into the second installation.
Existing saved entries are preserved. If an imported entry has the same name but different contents, AINotePro gives it a numbered name rather than overwriting the existing one.
Important: Library Import/Export does not transfer Anki notes, decks, generated audio files, model API keys, provider settings, or unsaved prompt drafts.
The current Library format is AINotePro.library version 1. Older prompt-only exports are not directly accepted by the unified Library Import.
6. GitHub Library Sync – Transfer Settings Between Computers
AINotePro can also save the complete Library JSON to your own GitHub repository.
This is useful if you use Anki on multiple computers and want to transfer prompts and Audio Profiles without manually copying files.
Example 9: Use the same Library on two computers
Suppose you use Anki on a desktop computer and a laptop.
Step 1: Create a GitHub repository
Sign in to GitHub and create a repository such as:
yourname/anki-personal-library
A Private repository is recommended because your saved prompts may contain personal information.
Initialize the repository with a README so it has an existing branch.
You can use an existing repository if you prefer.
Step 2: Create a GitHub access token
In GitHub, open:
Settings → Developer settings → Personal access tokens → Fine-grained tokens
Create a token with access to the selected repository and grant:
Repository permissions → Contents → Read and write
Other write permissions are not required.
Step 3: Configure AINotePro
In Anki, open AINotePro → Text.
Click Settings next to Save to GitHub and Load from GitHub.
Enter the following settings:
Repository: yourname/anki-personal-library
Branch: main
JSON path: ainotepro-library.json
Access token: Your fine-grained GitHub token
The repository value uses the owner/repository format, not the complete GitHub URL.
The JSON path is a file path inside your GitHub repository, not a path on your computer.
Confirm the settings and token storage.
GitHub tokens are stored securely through macOS Keychain, Windows Credential Manager, or Linux Secret Service, rather than inside the exported Library.
Step 4: Upload your Library
On your desktop computer:
- Save the prompts and Audio Profiles you want to keep.
- Click Save to GitHub.
- Wait for the success message.
AINotePro creates or updates the Library JSON file in your selected repository.
You can open the repository on GitHub to verify that the file exists.
Step 5: Restore your Library on another computer
On your laptop:
- Install AINotePro.
- Open the same GitHub Settings dialog.
- Configure the same repository, branch, and JSON path.
- Configure a valid access token for private repository access.
- Click Load from GitHub.
The Library is merged into your laptop's saved prompts and Audio Profiles.
Later, if you create a new prompt on your laptop, click Save to GitHub there, then Load from GitHub on your desktop to retrieve it.
Important points:
- Synchronization is manual, not automatic.
- GitHub Sync does not replace Anki Sync.
- It transfers saved prompts and Audio Profiles, not Anki decks or notes.
- Model API keys and GitHub tokens are not included in Library JSON files.
- Existing saved items are not deleted during Library merging.
- A private repository is recommended.
No local Git installation, GitHub CLI, SSH configuration, or terminal commands are required.
For the complete setup guide, see:
https://github.com/ernestyu/AINotePro#github-library-sync-complete-setup-guide-private-repository-recommended
7. Audio Generation – Add Speech to Anki Notes
AINotePro can generate MP3 speech and insert it into an Anki note field.
Two speech services are supported:
Microsoft Edge TTS: Provides a range of voices and languages.
Kokoro MLX (Local): Uses a separately hosted local speech service, currently intended for English.
Example 10: Add English pronunciation
Suppose your note contains:
Text: I would rather stay home tonight.
Audio: (empty)
Open the Audio tab.
- Select Edge TTS.
- Choose an English voice, such as
US-AriaNeural or GB-SoniaNeural.
- Set Source Field to Text.
- Set Destination Field to Audio.
- Preview the selected voice if desired.
- Click Generate.
AINotePro generates an MP3 file and inserts an Anki sound reference into the destination field.
The note can then play the audio using Anki's normal media playback.
Example 11: Practice with different voices
AINotePro supports up to four independent Voice configurations.
For example:
- Voice 1: American English, female
- Voice 2: British English, female
- Voice 3: American English, male
- Voice 4: British English, male
You can enable several Voice blocks and let AINotePro randomly select among them for each note.
This is useful for listening practice with different accents and voices.
Voice options include adjustable speed and volume where supported.
Audio Profiles
You can save your preferred Audio settings as named Profiles, such as:
- English Listening Practice
- Slow English
- British Pronunciation
- Kokoro Local
Profiles can store voice configurations and source/destination field mappings.
They can also be backed up or transferred using the unified Library Import/Export or GitHub Sync features.
Local Kokoro
To use Kokoro, start a compatible local Kokoro service separately and select Kokoro MLX (Local) in AINotePro.
AINotePro connects to the existing service; it does not install or launch the model server.
Audio storage and synchronization
Generated MP3 files are stored in Anki's media collection. Once your Anki collection and media are synchronized, the audio can be played on other devices without contacting the TTS service again.
AINotePro also provides conservative Skip/Replace options to reduce accidental audio replacement.
8. What's New in v1.2.1
Fixed Advanced multi-field selection
Source Fields and Destination Fields now use clear checkbox-based multi-selection, making it easier to select multiple fields and see the selected results.
Updated GitHub Settings button
Replaced the previous gear icon with a standard Settings text button for a more consistent interface.
Improved Easy OCR compatibility
Image Recognition is no longer restricted by a fixed Provider-name whitelist. Users can enable it with compatible models and custom endpoints.
Improved OCR error handling
When a model or API explicitly does not support image input, AINotePro displays a warning and stops the remaining OCR requests.
9. Requirements and Upgrading
Requirements
- Desktop Anki 26.05 or newer is the current target.
- Cloud AI providers require internet access and, where applicable, an API key.
- Edge TTS requires network access.
- Local AI or Kokoro servers must be installed and running separately.
- Image Recognition requires a vision-capable model and compatible API endpoint.
Upgrading
Before upgrading, consider backing up your Anki collection and the add-on's user_files directory.
AINotePro normally preserves user_files during add-on upgrades. This directory contains saved prompts and local configuration.
After installing an updated add-on, restart Anki.
Advanced Batch Size defaults to 1, so you can continue using single-note generation without enabling larger batches.
10. Privacy and Data
AINotePro sends selected source-field content and prompts to the AI service you configure. When Image Recognition is enabled, supported images may also be transmitted to the selected model endpoint.
Audio generation sends text to Microsoft Edge TTS or your configured Kokoro service.
Model API keys and provider settings remain in local configuration. GitHub access tokens are stored in the operating system credential store and are not included in exported Library files.
When GitHub Sync is used, saved prompts and Audio Profile settings are transferred to the GitHub repository you select. If the repository is public, others may be able to read those contents.
Use a private GitHub repository for personal or sensitive Library content.
AINotePro does not automatically upload your Anki decks, notes, or collection to GitHub.
Review the privacy policies of your chosen AI and speech services before processing sensitive information.
11. Documentation and Support
Source code and full documentation
https://github.com/ernestyu/AINotePro
Chinese documentation / 中文说明
https://github.com/ernestyu/AINotePro/blob/main/README.zh-CN.md
Bug reports and feature requests
https://github.com/ernestyu/AINotePro/issues
AINotePro v1.2.1 release
https://github.com/ernestyu/AINotePro/releases/tag/v1.2.1
License: MIT
AINotePro is an independent open-source project and is not affiliated with Anki, Microsoft, OpenAI, or other AI service providers.