1432214448 and restart Anki. Desktop Anki 2.1.50 or newer. Listing: ankiweb.net/shared/info/1432214448.What it does
Anki is very good at recognition: you see a card and recall the meaning. It never hears you say the card. This add-on adds that step without leaving the review screen.
- Mandarin: a score for every syllable, each tone checked against the tone it should have, and the tone or sound to fix first.
- English, Spanish, French, German, Russian, Japanese and Korean: a score for every word and every sound in it, and the weakest sound. Japanese is scored for sounds and timing; pitch accent is not scored.
- Replay your take, say it again, or open the card on toneperfect.app in your browser.
- Free, with no account and no API key.

How it works
- Record. y or the button opens Anki’s own recorder, the one the editor uses. Say the card and click Save.
- Score. The add-on converts Anki’s recording to 16 kHz mono WAV and sends it, with the card’s text, to toneperfect.app in the background, so the review screen never freezes. For Mandarin it also sends the expected pinyin: your note’s Pinyin field when it lines up with the characters, otherwise a reading it works out from the characters (with common multi-reading words and the 一/不 tone changes handled).
- Result in the card. The score panel is drawn under the card and stays there when you flip to the answer. Every value is escaped; links inside the panel are handled by the add-on, so nothing navigates away from the review.
The add-on uses the same free scorer as the recorder on toneperfect.app. It does not use this API, an API key or api.toneperfect.app.
Set up your deck
Most Mandarin decks work as they are. The add-on reads the first non-empty field named Hanzi, Simplified, Traditional, Chinese, Characters, Expression, Word, Vocab, Sentence or Front (otherwise the note’s first field), treats it as Mandarin, and uses a field named Pinyin for the expected tones. It removes [sound:…] tags, cloze markup, HTML and bracketed readings before sending.
For another language or field, add the note type in Tools › Add-ons › TonePerfect › Config:
"note_types": {
"Chinese (HSK)": {"field": "Hanzi", "lang": "zh", "reading_field": "Pinyin"},
"Spanish sentences": {"field": "Spanish", "lang": "es"},
"Japanese Core": {"field": "Expression", "lang": "ja"}
}Language codes: zh en es fr de ru ja ko. A phrase can be up to 120 characters. The shortcut, where the button shows (question, answer or both) and whether it shows at all are in the same config.
On your phone
AnkiMobile and AnkiDroid do not run add-ons. Tools › TonePerfect: Say-it card-template snippet… gives a small link you paste into your card template; on the phone it opens the card on toneperfect.app in the browser, where it is recorded and scored.
Limits and privacy
- Scoring is free, with an hourly limit per internet connection: about 60 takes an hour for Mandarin and English and 20 for the other six languages, shared with that connection’s takes on toneperfect.app.
- Your recording, the card’s text and a random id the add-on creates (not linked to any account) are sent to toneperfect.app to be scored. See what happens to recordings.
- Mandarin is scored against the Mainland standard; English against an American reference.
- Desktop scoring needs a microphone Anki can use and a network connection.

Build your own speaking check
Want the same thing in your own Anki add-on, an Obsidian plugin, a flashcard app or a dictionary site? That is what the TonePerfect API is for: one POST /v1/assess with a recording and its text returns a 0–100 score for the sentence, every word and every sound, word timings (every language except Japanese), and for Mandarin the initial, final and tone of every syllable, each with a correction decision. It covers 10 languages.
# Inside your own Anki add-on: score a take with the TonePerfect API.
# toneperfect.py is the single-file client from /sdk/ (standard library only, Python 3.9+),
# copied into the add-on folder. Run this off the main thread (mw.taskman.run_in_background).
from .toneperfect import TonePerfect
def score(wav_path, card_text, api_key):
client = TonePerfect(api_key) # the user's own key, from the add-on config
result = client.assess(wav_path, text=card_text, language="zh-CN")
to_fix = [(w.word, p.dimension, p.expected, p.heard)
for w in result.words for p in w.phones if p.decision == "review"]
return result.overall, to_fix- Keys: an add-on or app you hand out must not contain your API key. Either let each user paste their own key into the config, or put a small proxy in front that holds the key (the embed guide has one).
- Client: the Python client is one file with no dependencies, so it can be copied into an add-on folder. Any HTTP client works too: see the quickstart.
- Cost: 50 free credits for every new account, no card; test keys (
tp_test_…) return a fixed example and never spend credits. Plans are on the pricing page.