Add pronunciation audio
anki_generate_audioGenerate text-to-speech audio for Anki notes matching a search query, filling only empty destination fields. Convert field text to [sound:] clips via Google or AwesomeTTS voices.
Instructions
Add text-to-speech audio to notes matching an Anki search (e.g. 'deck:"Spanish" added:1'). Only notes whose dest_field is empty are processed; nothing is overwritten.
source_field: field whose text is spoken. dest_field: field that receives [sound:...] (e.g. "Back" or an "Audio" field). Works out of the box. engine: "google" = built-in, free Google Translate voices, needs internet; the text is sent to Google. "awesometts" = your AwesomeTTS add-on voice (needs AwesomeTTS + the bridge add-on). "auto" (default) = AwesomeTTS if available, else google. lang: language code for google (e.g. "en", "es", "fr", "de", "ja", "zh-CN"); see anki_tts_status. accent: Google domain for regional accents with lang "en": "com" (US), "co.uk", "com.au", "ca", "co.in". preset: AwesomeTTS preset name (or "group:"); default = the voice last used in AwesomeTTS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"source_field": "<source_field>",
"dest_field": "<dest_field>"
},
"name": "anki_generate_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | en | |
| limit | No | ||
| query | Yes | ||
| accent | No | com | |
| engine | No | auto | |
| preset | No | ||
| dry_run | No | ||
| dest_field | Yes | ||
| source_field | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||