Pronounce Selected Text

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:
- Use add-on v1.2.2+ (
edge-tts>=7.3.0).
- Clear
user_files/cache/ and restart Anki.
- Pronounce the affected text again.
License
GNU Affero General Public License v3.0 (AGPL-3.0). See LICENSE for details.