Speech Recognition for Anki

AnkiWeb addon 411601849

Transcribes audio files in Anki cards via Deepgram or Whisper, using a template filter or bulk fill-in action, with cached results and configurable language and provider.
AI-generated summary; may contain mistakes.

card-creationsync-integrationcard-templates

Open on AnkiWeb GitHub Forum topic Find alternatives

AnkiWeb

Votes
4 (πŸ‘ 3 Β· πŸ‘Ž 1)
Updated
2024-11-01
Anki versions
24.06.3~
License
AGPL-3.0 (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, CSV, C, JSON, Shell, Batchfile, YAML, Ignore List
Description language
en

Maintenance

stale

  • Last update or commit: 2024-11-01 (730 days before the snapshot).
  • Test files: 1.
  • GitHub Actions workflows: 2.
  • Commits in the last year: 0.
  • Issues: 1 open, 1 closed.
  • Pull requests: 1 open, 0 merged.
  • Median first response: 4429 hours (2 answered issues and pull requests).

GitHub

Repository
abdnh/anki-asr Β· more by abdnh
Stars
⭐ 1 · forks 2 · open issues 2
Last commit
2024-11-01
License
AGPL-3.0
Languages
Python, HTML, Makefile
Tests
1

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.4624.06.3+2024-11-01
History across monthly snapshots

Loading…

Similar addons

TRDict - Turkish Dictionary

Looks up Turkish definitions, example sentences, and pronunciations from the TDK dictionary, filling single or selected notes via editor/browser buttons, and generating cached pronunciation audio through a template filter.

card-creationcard-templatesdictionary

3 votes 44% approval πŸ‘ 3 Β· πŸ‘Ž 0 ⭐ 1 Anki 23.10.1~ Updated 2023-12-10
Transcribe Own Voice

Transcribes Record Own Voice recordings during review via the Speech Recognition add-on and displays the text in a small window, with configurable ASR service and language.

sync-integrationreview-flow

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 23.12.1~ Updated 2024-02-18
Bulk importer

Provides a user-friendly bulk importer for creating multimedia cards with paired images, audio, prompts and responses, including previews, drag-to-match reordering, automatic image scaling and media copying.

card-creationimportcard-templates

3 votes 6% approval πŸ‘ 1 Β· πŸ‘Ž 2 ⭐ 2 Anki 2.1.62~ Updated 2025-08-14

Description

This add-on adds speech recognition to your cards to transcribe audio files.

Supported speech-to-text services

Currently supported services are the following:

Usage

Most speech recognition services require you to register for an API key. Check the docs of your chosen service for details. You can configure your API key from the add-on's dialog accessible from the editor button ().

Add-on's dialog

Fill-in option

You can paste the transcriptions of audio files in a chosen field to any other field using the editor button or the Notes > Transcribe Selected browser action for bulk processing.

As a template filter

The add-on can also work as a template filter (asr, for "automatic speech recognition" or "Anki speech recognition"), which you put in your card template. E.g:

{{asr:Front}}

The add-on processes any [sound:foo.mp3] tags in the specified field and replaces them with the transcriptions of the audio. The results will be cached to avoid making additional requests to the ASR service in subsequent reviews. Compared to Fill-in option, this has the advantage that newly created notes can make use of the add-on automatically as long as their card template contains the filter.

You can specify the language using the lang option. E.g:

{{asr lang=tr:Front}}

The default language is English (en). Supported languages depend on the service used. For Deepgram, see https://deepgram.com/product/languages/ for a list of supported languages.

The speech-to-text service used can be specified using the provider option. E.g:

{{asr provider=deepgram:Front}}

If you set auto=false, a button will be shown that you can click to show the transcription:

{{asr auto=false:Front}}

This is useful to avoid making a request to the ASR service when not needed, or to simply use the transcription as an optional hint.

You can see a list of each provider's supported languages by placing something like the following on your template:

{{asr-langs provider=deepgram:}}

This will list each supported language's code and name. The language code is what you have to provide to the lang option.

Transcription tasks

In the window under Tools > Speech Recognition for Anki > Transcribed Files you can see a list of files transcribed since starting Anki and their status (running, finished successfully or with an error) and the resulting transcriptions.

Advanced

Custom providers

If you know Python, you can integate any ASR service via a custom provider. See user_files/providers/my_provider.py for an example. If your provider is general enough to warrant including in the add-on, please open a pull request!

Changelog

See CHANGELOG.md for a list of changes.

Credit

Icons are adapted from Bootstrap Icons; licensed under the MIT.

Support & feature requests

Please post any questions, bug reports, or feature requests in the support page or the issue tracker.

If you want priority support for your feature/help request, I'm available for hire. Get in touch via email or the UpWork link below.

Support me

Consider supporting me if you like my work:

Buy Me A Coffee

I'm also available for freelance add-on development:

README

Anki add-on for speech recognition.

Supported speech-to-text services

Currently supported services are the following:

Usage

Most speech recognition services require you to register for an API key. Check the docs of your chosen service for details. You can configure your API key from the add-on's dialog accessible from the editor button ().

Add-on's dialog

Fill-in option

You can paste the transcriptions of audio files in a chosen field to any other field using the editor button or the Notes > Transcribe Selected browser action for bulk processing.

As a template filter

The add-on can also work as a template filter (asr, for "automatic speech recognition" or "Anki speech recognition"), which you put in your card template. E.g:

{{asr:Front}}

The add-on processes any [sound:foo.mp3] tags in the specified field and replaces them with the transcriptions of the audio. The results will be cached to avoid making additional requests to the ASR service in subsequent reviews. Compared to Fill-in option, this has the advantage that newly created notes can make use of the add-on automatically as long as their card template contains the filter.

You can specify the language using the lang option. E.g:

{{asr lang=tr:Front}}

The default language is English (en). Supported languages depend on the service used. For Deepgram, see https://deepgram.com/product/languages/ for a list of supported languages.

The speech-to-text service used can be specified using the provider option. E.g:

{{asr provider=deepgram:Front}}

If you set auto=false, a button will be shown that you can click to show the transcription:

{{asr auto=false:Front}}

This is useful to avoid making a request to the ASR service when not needed, or to simply use the transcription as an optional hint.

You can see a list of each provider's supported languages by placing something like the following on your template:

{{asr-langs provider=deepgram:}}

This will list each supported language's code and name. The language code is what you have to provide to the lang option.

Transcription tasks

In the window under Tools > Speech Recognition for Anki > Transcribed Files you can see a list of files transcribed since starting Anki and their status (running, finished successfully or with an error) and the resulting transcriptions.

Advanced

Custom providers

If you know Python, you can integate any ASR service via a custom provider. See user_files/providers/my_provider.py for an example. If your provider is general enough to warrant including in the add-on, please open a pull request!

Download

The the add-on can be downloaded from AnkiWeb: https://ankiweb.net/shared/info/411601849

Changelog

See CHANGELOG.md for a list of changes.

Credit

Icons are adapted from Bootstrap Icons; licensed under the MIT.

Support & feature requests

Please post any questions, bug reports, or feature requests in the support page or the issue tracker.

If you want priority support for your feature/help request, I'm available for hire. Get in touch via email or the UpWork link below.

Support me

Consider supporting me if you like my work:

Buy Me A Coffee

I'm also available for freelance add-on development: