Pronounce Selected Text

AnkiWeb addon 275021693

Pronounces highlighted text or a configured card field with Alt+C using automatic language detection and native neural voices, with local caching and customizable settings.
AI-generated summary; may contain mistakes.

shortcutsaccessibility

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-10-13
Anki versions
2.1.1~
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, JSON, YAML, Ignore List
Description language
en

Maintenance

active

  • Last update or commit: 2026-10-31 (1 days before the snapshot).
  • Test files: 11.
  • Commits in the last year: 14.
  • Issues: 0 open, 1 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-10-13
History across monthly snapshots

Loading…

Similar addons

Speech to text Windows

Adds a right-click "Speak" option for highlighted words, using Windows' native SAPI text-to-speech to pronounce them aloud.

accessibility

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 Updated 2023-01-20
Auto Image Occlusion

Automatically detects text regions in images using Tesseract OCR and creates configurable, merged image occlusion shapes with one click.

card-creationshortcutsimage-occlusion

5 votes 57% approval πŸ‘ 5 Β· πŸ‘Ž 0 ⭐ 9 Anki 26.08.1~ Updated 2026-09-09
Code Highlight

Adds non-invasive automatic syntax highlighting to code blocks in Anki's editor preview and reviewer, auto-detecting languages or accepting manual class specifications, with configurable font size and color scheme.

formattingappearance

18 votes 55% approval πŸ‘ 14 Β· πŸ‘Ž 4 ⭐ 2 Anki 23.12.1~ Updated 2024-02-20

Description

Pronounce Selected Text (Alt+C)

Update (v1.2.2): Fixes the October 2026 Microsoft Edge TTS outage (HTTP 403 with older edge-tts 7.2.8). Neural voices are restored via bundled edge-tts 7.3.1. Cache keys now include the synthesis engine, so a temporary Google TTS fallback cannot overwrite a neural voice cache entry. After updating: restart Anki. If some phrases still sound lower quality, delete files in the add-on user_files/cache/ folder and pronounce them again.

Instant, ultra-realistic text-to-speech pronunciation of highlighted text or card example sentences in Anki upon pressing Alt+C (configurable). Powered by Microsoft Azure / Edge Neural voices with automatic on-the-fly language detection.

Key Features

  • Dual-Mode Pronunciation:
    • Selection Mode: Highlight any word, clause, idiom, or full sentence across the Card Reviewer, Note Editor, or Card Browser and press Alt+C to hear it spoken instantly.
    • Fallback Field Mode: Press Alt+C without selecting any text, and the add-on automatically pronounces a configured note field (default: ItalianExample; set any field name in Config).
    • Smart Conjugation Matching: On verb conjugation cards where examples are organized per grammatical person (Io, Tu, Loro), it dynamically detects the active card template and speaks the matching person's example (e.g. Loro example).
  • Automatic Language Detection: Pure-Python, zero-dependency detector identifies the language of the target text (Italian, French, Spanish, German, Russian, English, Portuguese, Japanese, Chinese, etc.) and routes to the appropriate native voice.
  • Dedicated Native Monolingual Voices: Defaults to dedicated monolingual neural voices (it-IT-ElsaNeural, fr-FR-DeniseNeural, es-ES-ElviraNeural, de-DE-KatjaNeural, ru-RU-SvetlanaNeural, en-US-JennyNeural) to reduce English phonetic leakage on shared vocabulary.
  • Dynamic SSML Locale Integrity: Root <speak xml:lang='...'> dynamically matches the detected voice locale for authentic native intonation.
  • Multi-Layout Keyboard Support (English & Russian): Built-in physical key code and Cyrillic mapping ensures Alt+C triggers smoothly whether your active system keyboard layout is English or Russian.
  • Zero-Restart Live Configuration: Adjust shortcuts, volume, or fallback fields in Tools β†’ Add-ons β†’ Config and changes apply immediately without restarting Anki.
  • Instant Local Caching (<1 ms): Synthesizes new phrases in ~300 ms and caches them locally. Repeat plays are instant. Cache slots are separated by engine (edge vs fallback) so degraded fallback audio cannot replace neural audio.
  • Audio Preemption: Rapid keypresses cleanly terminate previous playback so new audio begins immediately.
  • 100% Standalone: Fully self-contained with bundled dependencies. No external add-ons, accounts, or API keys required.

Supported Languages & Dedicated Voices

  • Italian: it-IT-ElsaNeural
  • French: fr-FR-DeniseNeural
  • Spanish: es-ES-ElviraNeural
  • German: de-DE-KatjaNeural
  • Russian: ru-RU-SvetlanaNeural
  • English: en-US-JennyNeural
  • Portuguese: pt-BR-FranciscaNeural
  • Japanese: ja-JP-NanamiNeural
  • Chinese: zh-CN-XiaoxiaoNeural
  • (Plus Greek, Arabic, Hebrew, and other standard languages)

Prerequisites (Linux)

Ensure mpv is installed on your Linux system:

  • Arch Linux / Omarchy: sudo pacman -S mpv
  • Ubuntu / Debian: sudo apt install mpv
  • Fedora: sudo dnf install mpv

Configuration

In Anki, navigate to Tools β†’ Add-ons β†’ select Pronounce Selected Text β†’ click Config:

{
  "shortcut": "Alt+C",
  "volume": 140,
  "audio_output": "pipewire,pulse",
  "speed": 1.0,
  "show_tooltip": false,
  "fallback_field": "ItalianExample",
  "debug_log": true
}

Support / issues: GitHub Issues
Source: https://github.com/argrig666/anki-pronounce-selected

README

Pronounce Selected Text

License: AGPL v3 Anki Platform

Instant, ultra-realistic text-to-speech pronunciation in Anki upon pressing Alt+C (configurable). Powered by Microsoft Azure / Edge Neural voices with automatic on-the-fly language detection.


Key Highlights

  • Dual-Mode Pronunciation:
    • Selection Mode: Highlight any word, clause, idiom, or full sentence across the Card Reviewer, Note Editor, or Card Browser and press Alt+C to hear it spoken instantly.
    • Fallback Field Mode: Press Alt+C without selecting any text, and the add-on pronounces a field of the current card (preferred name configurable, default "ItalianExample").
    • Current-card scoping: On multi-card notes (e.g. verb conjugations with Io/Tu/Voi examples), it reads the example shown on the active card β€” never a sibling card’s field.
  • On-The-Fly Language Auto-Detection: Pure-Python zero-dependency detector automatically identifies the language (Italian, French, Spanish, German, Russian, English, Portuguese, Japanese, Chinese, etc.) and routes to the dedicated native monolingual voice.
  • Dedicated Native Monolingual Voices: Enforces neural TTS principles: defaults to dedicated native voices (it-IT-ElsaNeural, fr-FR-DeniseNeural, es-ES-ElviraNeural, de-DE-KatjaNeural, ru-RU-SvetlanaNeural, en-US-JennyNeural) to prevent English phonetic leakage on shared vocabulary.
  • Dynamic SSML Locale Integrity: Root <speak xml:lang='...'> dynamically matches the detected voice locale for authentic native intonation.
  • Multi-Layout Keyboard Support (English & Russian): Built-in physical key code and Cyrillic mapping. Alt+C works seamlessly whether your active keyboard layout is English or Russian.
  • Zero-Restart Live Configuration: Adjust shortcut, volume, or fallback fields in Tools β†’ Add-ons β†’ Config and changes apply immediately on-the-fly without restarting Anki.
  • Instant Disk Caching (<1 ms): Caches synthesized audio locally. Repeat reviews play instantly without network requests. Cache keys include the synthesis engine so a temporary gTTS fallback cannot overwrite a neural Edge entry.
  • Bundled edge-tts>=7.3.0: Required after Microsoft’s October 2026 Edge Read Aloud handshake change (older 7.2.8 builds received HTTP 403 and fell back to lower-quality gTTS).
  • Audio Preemption: Rapid keypresses cleanly terminate previous playback so new audio begins immediately.
  • 100% Standalone: Self-contained with bundled dependencies. Zero setup or API keys required.
  • Right-Click Context Menu: Also adds a "Pronounce Selected Text (Alt+C)" action to the reviewer context menu.

Default Shortcut & Configuration

Default shortcut is Alt+C.

To customize the shortcut or adjust settings, go to Tools β†’ Add-ons β†’ Pronounce Selected Text β†’ Config:

{
  "shortcut": "Alt+C",
  "volume": 140,
  "audio_output": "pipewire,pulse",
  "speed": 1.0,
  "show_tooltip": false,
  "fallback_field": "ItalianExample",
  "debug_log": true
}

Prerequisites

Ensure mpv is installed on your Linux distribution:

  • Arch Linux / Omarchy: sudo pacman -S mpv
  • Ubuntu / Debian: sudo apt install mpv
  • Fedora: sudo dnf install mpv

Troubleshooting

If neural voices suddenly sound lower quality, or user_files/debug.log shows 403 Invalid response status, see SUPPORT.md. Short version:

  1. Use add-on v1.2.2+ (edge-tts>=7.3.0).
  2. Clear user_files/cache/ and restart Anki.
  3. Pronounce the affected text again.

License

GNU Affero General Public License v3.0 (AGPL-3.0). See LICENSE for details.