AI Language Explainer

AnkiWeb addon 375742312

Generates contextual written explanations and spoken audio for target words in sentence cards using OpenAI models and selectable TTS engines, with one-click or batch processing.
AI-generated summary; may contain mistakes.

card-creationaisync-integrationdictionary

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
10 (πŸ‘ 10 Β· πŸ‘Ž 0)
Updated
2025-10-07
Anki versions
2.1.66~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2025-11-10 (356 days before the snapshot).
  • Commits in the last year: 1.
  • Issues: 0 open, 3 closed.
  • Pull requests: 0 open, 0 merged.
  • Median first response: 956 hours (2 answered issues and pull requests).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.452.1.66+2025-10-07
History across monthly snapshots

Loading…

Similar addons

AI Context Helper

Generates AI-powered example sentences, explanations, collocations, and usage context for vocabulary, then turns that content into Anki notes via a floating window and context menu.

card-creationaidictionary

3 votes 44% approval πŸ‘ 3 Β· πŸ‘Ž 0 Anki 24.06.3~ Updated 2025-01-01
IntelliFiller ChatGPT has 1 fork β†’

Autofills Anki card fields using ChatGPT or Claude via customizable prompts that reference field names, with saved prompts and batch filling across multiple selected cards.

card-creationai

29 votes 62% approval πŸ‘ 23 Β· πŸ‘Ž 6 Anki 24.11~ Updated 2025-03-09
MnemoMaker: Language Learning Accelerator

Automatically creates formatted vocabulary flashcards with Cambridge Dictionary definitions, examples, translations, pronunciation, and AI-generated mnemonics in multiple language pairs.

card-creationaidictionary

6 votes 19% approval πŸ‘ 3 Β· πŸ‘Ž 3 ⭐ 2 Anki 25.02.5~ Updated 2025-08-15

Description

For support, email the developer at r@rayamjad.com.

About

AI Language Explainer is an Anki extension that allows you to mass-generate written and spoken definitions for target words in the context of sentence cards.

To understand why this is useful, watch this video here or read Matt's tweet on conceptual definitions here.

It accepts input fields (target word, sentence, definition) and outputs:

  • An explanation of the target word in context generated by an OpenAI text model of your choice
  • A spoken version of the above is generated using a TTS Engine of your choice

It uses OpenAI's API, so it requires you to bring your own OpenAI API Key. You can make an account here. Make sure you top up your account with at least $10 in credits.

It supports the following TTS Engines:

Features

🧠 Intelligent Explanations

  • Automatically generate contextual definitions using OpenAI’s models (GPT-4.1, GPT-4, GPT-3.5, etc.)
  • Customize prompts to suit your learning style and level

🎡 High-Quality Audio Generation

  • Supports VoiceVox, AivisSpeech, ElevenLabs, and OpenAI TTS
  • Preview and choose voices (AivisSpeech/VoiceVox)
  • Adjustable OpenAI TTS speed
  • Batch audio generation

βš™οΈ Flexible Configuration

  • Works with any note type
  • Toggle generation features
  • Tabbed settings interface for easy control

πŸš€ User Experience

  • One-click generation during reviews
  • Batch generation in the browser
  • Robust error handling and logging

Images

Screenshot 1
Screenshot 2
Screenshot 3

Setup

Watching this video shows you how to set up the add-on.

You may find the sample deck here useful to see how I personally set up my Japanese language learning cards to be used with the extension.

Recommended Prompt

Here's a prompt you can use for Japanese,

Write a short explanation of the word '{word}' in the context of the sentence: '{sentence}'. 

Write an explanation that helps a Japanese native (who is around 13 years old) understand the word and how it is used in this context as an example. Phrase it as though you're explaining it to a friend. 

Start with the core meaning of the word followed by an explanation of it in the particular sentence. For example, the core meaning of 聞く is "act of obtaining information, whether by taking in sounds or asking questions to someone".

DO NOT's...
- You will be punished for using any English; use only simpler Japanese. Katana words are okay if native speakers use them.
- You will be severely punished for writing the furigana pronunciation for any kanji and words in brackets. 
- You'll be punished for using euphemisms when explaining sexual things. Just explain it as it is.
- You will be punished for starting with introductory text such as γ¨γ„γ†θ¨€θ‘‰γ‚’η°‘ε˜γ«θͺ¬ζ˜Žγ™γ‚‹γ­, just dive straight into explaining after starting with the word. Ie, word, explanation

Common Issues

My cards keep failing to generate. Why?
This could be because:

  • Your OpenAI API Key has expired or isn't working.
  • You ran out of OpenAI API credits.
  • Your prompt is misconfigured. Remember that {sentence}, {word}, and {definition} must all be in lowercase. It's case-sensitive, so no {Sentence}. There should be no other {x} in your prompt.

I'm trying to generate definitions in a non-English language, but it keeps reverting to English / Japanese?

  • You should switch the OpenAI model to GPT-4o instead. It performs better than GPT-4.1 on non-English languages.

The audio failed to generate. Why?

  • If you're using VoiceVox or AivisSpeech, ensure the engine is running.
  • If you're using ElevenLabs or OpenAI TTS, check your internet connection.

The audio generation is taking too long with VoiceVox or AivisSpeech. Why?

  • I'm afraid your computer is too slow. Simply wait or buy a better one.

Why do cards fail to generate in bulk after a few?

  • New OpenAI accounts often have low rate limits when it comes to their APIs. Try to generate a card at a time for your first few days. Your rate limit will automatically increase afterwards.

About Me

Hey, I'm Ray. I make videos on YouTube.

README

AI Language Explainer for Anki

Generate AI-powered explanations for language learning with high-quality text-to-speech audio

This Anki add-on helps language learners understand vocabulary words in context by generating explanations of target words using OpenAI's models AND relevant audio.

✨ Features

🧠 Intelligent Explanations

  • Automatically generates contextual explanations for target words based on an example sentence and usage.
  • Choose any OpenAI text model (eg, GPT-4.1, GPT-4o, GPT-3.5) for accurate, beginner-friendly explanations
  • Customizable prompts to match your learning style and level

🎡 High-Quality Audio Generation

  • Multiple TTS Engines: Choose from VoiceVox, AivisSpeech, ElevenLabs, or OpenAI TTS
  • Voice Preview & Selection: Listen to samples and choose your preferred voice for AivisSpeech and VoiceVox
  • Adjustable Speed: Adjust the speed of OpenAI TTS with a slider
  • Batch Processing: Generate audio for multiple cards at once

βš™οΈ Flexible Configuration

  • Works with any note type (fully configurable fields)
  • Tabbed settings interface for easy organization
  • Option to disable text generation or audio generation or
  • Hide UI elements

πŸš€ User Experience

  • One-click generation during card review
  • Batch processing from the browser
  • Comprehensive error handling and logging

πŸ“₯ Installation

  1. Install the add-on through Anki's add-on manager
  2. Configure settings by going to Tools > AI Language Explainer > Settings
  3. Set up your note type and field mappings
  4. Add your OpenAI API key under the Text Generation tab
  5. Choose your preferred TTS engine (optional)

⚑ Quick Setup

1. Basic Configuration

  • Note Type: Select your card type (e.g., "Sentence Mining", "Vocabulary")
  • Input Fields: Map your target word and sentence fields
  • Output Fields: Set where explanations and audio should be saved
  • OpenAI API Key: Enter your API key for text generation

2. Audio Setup (Optional)

VoiceVox (Free, Japanese-focused)

  1. Download and install VOICEVOX
  2. Start VOICEVOX before using the add-on (runs on http://localhost:50021)
  3. Test connection and select preferred voice in settings

AivisSpeech (Free, Japanese-focused)

  1. Download and install AivisSpeech Engine
  2. Start the engine (runs on http://127.0.0.1:10101)
  3. Load voices and select default in the add-on settings
  4. Download additional voices from AivisHub

ElevenLabs (Premium, Multilingual)

  1. Create an account at ElevenLabs
  2. Get your API key and voice ID
  3. Enter credentials in the TTS settings

OpenAI TTS (Premium, Reliable)

  1. Use the same OpenAI API key as text generation
  2. Choose from available voices (alloy, echo, fable, etc.)
  3. Adjust the speed between 0.5x to 3x in 0.1x intervals

🎯 Usage

During Review

  1. Review your card as normal
  2. Click "Generate explanation" button when answer is shown
  3. Wait for text generation and audio synthesis to complete
  4. New content appears automatically on your card

Batch Processing

  1. Open the Anki browser
  2. Select cards you want to process
  3. Go to Edit > Batch Generate AI Explanations
  4. Monitor progress and review results

πŸ› οΈ Requirements

  • Anki: Version 2.1.50+ (tested with Anki 25+)
  • OpenAI API Key: With sufficient credits
  • Internet Connection: For API calls
  • TTS Engine (optional): Choose from supported engines for audio generation

πŸ”§ Troubleshooting

Common Issues

My cards keep failing to generate. Why?

This could be because,

  • Your OpenAI API Key has expired.
  • You ran out of OpenAI API credits.
  • Your prompt is misconfigured. Remember that {sentence} and {word} should both be in lowercase. It's case sensitive. There should be no other {x} in your prompt.

The audio did not generate. Why?

If you're using VoiceVox or AivisSpeech, you must ensure you have it running in the background.

If you're using ElevenLabs or OpenAI TTS then sure you have an internet connection.

Why cards fail to generate in bulk after a few cards. Why?

If you recently made an OpenAI Developer account then your rate limit will be low for the first few days. I'd recommend waiting a few days and only generating a few cards at a time.

Debug Information

Check these files in your add-on directory for detailed error information:

  • debug_log.txt - General operation logs
  • crash_log.txt - System crash information

πŸŽ“ Learning Resources

Want to learn more about effective language learning?

Check out Matt vs Japan's Immersion Dojo for advanced language learning theory and community support.

πŸ“ License

This project is open source. See the repository for license details.

🀝 Contributing

Found a bug or have a feature request? Please open an issue on the GitHub repository.


Happy language learning! πŸŒπŸ“š