Microphone for Card Templates

AnkiWeb addon 1888006895

Grants card templates microphone access on desktop Anki via the standard browser API, with audio-only permissions, a visible recording indicator, and configurable settings.
AI-generated summary; may contain mistakes.

card-templatesbugfix-workaround

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-11-06
Anki versions
2.1.1~
License
MIT (from the license file in the package)
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

active

  • Last update or commit: 2026-11-06 (25 days before the snapshot).
  • GitHub Actions workflows: 1.
  • Commits in the last year: 3.
  • Issues: 2 open, 0 closed.
  • Pull requests: 0 open, 1 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-11-06
History across monthly snapshots

Loading…

Similar addons

Anki Polly Importer

Generates AWS Polly speech audio from selected note fields using configurable credentials, region, voice, engine, field mapping, and SSML templates, saving the audio into a chosen deck field.

card-creationsync-integration

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 2 Updated 2020-04-24

Description

🎀 Microphone for Card Templates

Enable microphone access inside Anki card templates on Windows, macOS and Linux.

AnkiDroid already supports microphone recording in templates through "Allow templates to record audio". Desktop Anki, however, never responds to microphone requests from card templates, which means recording buttons simply do not work.

This add-on fills exactly that gap.
It allows card templates to access the microphone using the standard browser API:

navigator.mediaDevices.getUserMedia({ audio: true })

No extra template changes required. If your template already works on AnkiDroid, it can work on desktop Anki too.

Microphone for Card Templates Screenshot

✨ Ideal for Pronunciation Practice

This add-on was originally developed for the German deck "20.000 hΓ€ufige WΓΆrter", specifically the card types Audio and HΓΆren.

Typical workflow:

  1. Press and hold the record button
  2. Repeat the word or sentence
  3. Release the button
  4. The card compares your recording with the original
  5. Optionally receive AI-based feedback using your own Gemini API key

The add-on is not restricted to this deck and works with any template that records audio via the standard browser microphone API.

βœ… Features

  • 🎀 Enables microphone access for card templates on desktop Anki
  • πŸ”’ Audio-only permissions (camera access is always denied)
  • πŸ”΄ Visible REC indicator while recording
  • 🧩 Provides window.ankiMicrophone === true for template detection
  • πŸ“– Works in:
    • Reviewer
    • Card Previewer
    • Card Template Editor Preview
  • ⚑ Lightweight and focused on a single purpose

πŸ” Privacy & Security

This add-on:

  • Does not record audio itself
  • Does not store recordings
  • Does not transmit data anywhere
  • Does not access the network
  • Does not collect analytics

The add-on merely grants microphone access to the card template. What happens with the audio depends entirely on the template's JavaScript code. As always, only use templates you trust.

βš™οΈ Configuration

Tools β†’ Add-ons β†’ Microphone for Card Templates β†’ Config

Option Description enabled If false, all microphone requests are refused. show_indicator If false, the recording badge is hidden.

After changing settings, restart Anki. Qt WebEngine remembers permission decisions until Anki is closed.

πŸ“‹ Requirements

  • Anki 24.04 or newer
  • Tested with Anki 26.09.3 on Linux
  • Works with both modern and legacy Qt permission APIs
  • Operating-system microphone permission must be granted to Anki

Examples:

  • Windows: Settings β†’ Privacy & Security β†’ Microphone
  • macOS: System Settings β†’ Privacy & Security β†’ Microphone

πŸ‘¨β€πŸ’» For Template Authors

Without this add-on, desktop Anki leaves microphone requests pending forever. You can detect support before displaying recording controls:

var desktop = typeof pycmd === 'function';

if (!desktop || window.ankiMicrophone === true) {
    // show record

README

πŸ“š Anki Decks – Community Feedback & Contributions

Welcome to the official repository for my shared Anki decks!

If you're using one of my decks and have found:

  • ❗ errors or typos
  • πŸ’‘ suggestions for improvements
  • 🌍 better translations or example sentences
  • 🧩 ideas for new features or card types

…this is the place to share them!

πŸ“¦ Decks

Deck Download Notes as CSV
20.000 hΓ€ufige WΓΆrter – 20,000 frequent German words with English and Spanish AnkiWeb decks/20000-german-words

The deck (.apkg) and its media files (pictures and audio) can also be downloaded from MEGA – copy the media files into your collection.media folder.

🀝 How to contribute

  • Found a mistake? Report it with the form. The number after Freq.n: on the card and the German word are enough – one report can list many notes.
  • Want to correct it yourself? All notes are in CSV files, one row per note. Edit them right here on GitHub and send a pull request – an automatic check helps you. See CONTRIBUTING.md.
  • Questions or bigger ideas? Start a Discussion.

Accepted corrections go into the next version of the deck on AnkiWeb.

πŸ› οΈ Current focus

The 20,000-word German frequency deck is now complete. I'm now focusing on advanced C1–C2 preparation materials – including idiomatic expressions, collocations, academic vocabulary, and refined sentence-based training.

Your input helps improve these decks for everyone!