Extra JS API functionality by silidev - ankidroid/Anki-Android GitHub Wiki

For my own project I wrote for the AnkiDroid JS API:

TTS

I also have a wrapper around the TTS API. Most of it is in AnkiUtils.ts (link above). Some I have not published it yet, b/c it is currently tightly coupled with code not suitable for publishing. If any developer is interested to do something with this, I will try to find the time to publish more. It has these features:

  • Speak only text, all html tags are not spoken.
  • Pause after each sentence.
  • Correct bad pronunciation by replacing a list of words with phonetic spelling.
  • Set the correct language for each note by tags.
  • Speak the card forever in a loop.
  • Blacken the screen and option lock inputs while speaking.

General Anki card template development tips