Vocab-Apps / anki-hyper-tts

HyperTTS Addon for Anki
GNU General Public License v3.0
75 stars 10 forks source link

introduce javascript API for people with javascript customization #184

Open luc-vocab opened 2 months ago

luc-vocab commented 2 months ago

I was wondering if i could use javascript to customize what should be read by tts? I have a script that asks keywords on the front and highlights the one i got right and the one i forgot on the back. The keywords are extracted from the Answer field using . And then the scripts compare my input to the keywords. Would be awesome if there was a way for tts to read the one I got wrong!

other possibility is a server-side API available only to Vocab.AI subscribers, which could work on both Anki desktop and mobile.

requested by Paul over email.

luc-vocab commented 2 months ago

Requested by Attilio over email

Hi, I have a note type with 1 question field and 5 answer fields with only 1 correct answer in the first field.

I set up javascript so that on the front side the answers are displayed randomly, and on the back side only the correct answer appears.

I’d like to use TTS on the question field and on the 5 answer fields. Since the first field has the correct answer, it wouldn’t make sense to read the answers in the default order, so I installed HyperTTS hoping there would a feature that would allow me to run TTS in random order on all 5 fields, but insofar I noticed that I can only use 1 source field, so I don’t know if HyperTTS fits my use case. Can you help me with that?

luc-vocab commented 4 weeks ago

requested by Abdallah over email

I have a script in my note that parses only French stances out of the ‘notes’ field. You can see the script below. Would it be possible that you let me know how to use your add-on to read this output form the script — knowing that the output is not in a field, it is gathered by the script

The script “””

“””