Requires Anki 2.1.20 or later.
This add-on is an example of how third-party TTS services can be plugged into Anki 2.1.20.
If you’re an end user wanting to add audio to your cards, consider using the AwesomeTTS add-on instead, which is better supported: https://ankiweb.net/shared/info/1436550454
If you do want to use this add-on, once installed, you can use the following in your card template to read the Front field aloud:
{{tts en_US voices=gTTS:Front}}
Replace en_US with the language of your choice. For more on TTS, please see https://apps.ankiweb.net/docs/manual.html#text-to-speech
Source available at https://github.com/ankitects/anki-addons/blob/master/code/gtts_player/init.py
Update 2023-06-07: Fix issues by updating to latest gtts library (thanks to looi).
Liên kết hỗ trợ
Reviews (17)
👍 2025-11-17
Thank you so much for creating and maintaining this wonderful add-on! It’s been essential for my studies.
To solve the problem of needing a constant internet connection, I’ve created a modified version that adds a seamless offline fallback using the Piper TTS engine. If you’re offline or the connection is slow, it automatically uses a local voice, so your study flow is never interrupted.
Key features of the new version:
Automatic Offline Fallback: Uses the local Piper TTS engine when gTTS is
👍 2025-08-16
English, French and Russian work flawlessly. Arabic does not, even though Google has the language. I’ve tried: ar_XA, ar, ar_EG, nothing so far. What gives?
👍 2024-10-06
Best add on.
PS: Speed change function looks required. Could you please? {{tts en_US voices=gTTS speed=0.8 :field}}, speed funcion is not working. Otherwise all OK
👍 2024-02-23
works, thank you!
👍 2024-01-13
Seems to work for me
👍 2024-01-13
on Debian 12 with Anki 23.12.1 via flathub installed using {{tts it_IT speed=0.8:TTS_Italy}} in my italian flashcards (Where “TTS_Italy” is the field for the Italian word(s) I want it to pronounce for me.
👍 2023-11-22
Working great on 23.10, Linux Mint. Thanks!
👍 2021-12-08
Is it working on Ankidroid?
👍 2021-01-10
Useless
👍 2021-01-06
superb bro
👍 2020-12-29
not working on nixos
when clicking on play button
no players found for TTSTag(field_text=‘erste’, lang=‘en_US’, voices=[‘gTTS’], speed=1.0, other_args=[])
also {{tts-voices:}} shows nothing
this is weird, because the python gtts lib does not require api key as I can tell
UPDATE
I should have restarted
other error
raise ValueError(
ValueError: Unable to find token seed! Did https://translate.google.com change?
prob solution https://stackove
👍 2020-09-09
Want to confirm that we cannot go faster than 1X speed? I can’t seem to speed it up. Otherwise great.
👍 2020-08-22
With this add-on we don’t need to input mp3 audio file to each of our card. This add-on can save our time greatly!
👍 2020-04-10
good !
👍 2020-03-31
Now you know how we feel!
👍 2020-03-26
very good your explanation!! thks
👍 2020-02-10
Is there a way to get this amazing add on to work on ankidroid as well? Comment from author I’m afraid add-ons only work in the computer version, though please note AnkiDroid has its own text to speech system in the app.