is there a way to prevent TTS from playing on some cards?
I tried to add at the very beginning of my card s {{xSkipTTSForThisCard}}
(I saw here and here ) but that did not work (on PC anki nor on ankidroid). Is there a solution?
dae
October 23, 2021, 10:12am
2
Anki only supports turning autoplay on/off on a deck basis.
actually it’s now possible to set it up using js (it’s currently only available on alpha)
ankidroid:master
← mikunimaru:jsTtsApi
opened 03:45PM - 12 May 21 UTC
## Purpose / Description
New JavaScript api
Added an api that can call TTS f… rom JavaScript.
## Fixes
Fixes #8794
## Approach
The following API has been added.
ankiTtsSpeak // Speak a string
ankiTtsSetLanguage // Set the language for speaking
ankiTtsSetPitch // Set the pitch when speaking
ankiTtsSetSpeechRate //Set the speed when speak
ankiTtsStop //Stop speaking
## How Has This Been Tested?
Confirmed the operation of all apis on physical devices.
## Checklist
_Please, go through these checks before submitting the PR._
- [x] You have not changed whitespace unnecessarily (it makes diffs hard to read)
- [x] You have a descriptive commit message with a short title (first line, max 50 chars).
- [x] Your code follows the style of the project (e.g. never omit braces in `if` statements)
- [x] You have commented your code, particularly in hard-to-understand areas
- [x] You have performed a self-review of your own code
- [ ] UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
- [ ] UI Changes: You have tested your change using the [Google Accessibility Scanner](https://play.google.com/store/apps/details?id=com.google.android.apps.accessibility.auditor)