AwesomeTTS / awesometts-anki-addon

AwesomeTTS text-to-speech add-on for Anki
GNU General Public License v3.0
481 stars 100 forks source link

Save on-the-fly generated to a specific field #295

Open ksslng opened 1 year ago

ksslng commented 1 year ago

I would like an option that saves the on the fly generated TTS to a specific field so later when I review them on the web that I have the audio available. (I'm assuming they are cached now on the device)

I think I could try to implement it myself if you think it would be a good addition.

Suggestion would be to add it another field in the brackets. Eg:

before: {{tts vi_VN voices=AwesomeTTS:viet}}
after: {{tts vi_VN voices=AwesomeTTS:viet audio-viet}}

And add a drop down to the menu, eg:

Screenshot 2023-06-16 at 18 16 04

Question is how to add the normal savings option:

Screenshot 2023-06-16 at 18 22 45

I would love to hear your thoughts, Thank you!

ksslng commented 1 year ago

I've looked now a bit into it and I guess the problem is that with the anki TTSTag, you don't get the note itself. This means one can't save the file path to the desired field of the note to save it to.