piazzatron / anki-smart-notes

Superchange your anki flashcards with ✨AI✨
GNU General Public License v3.0
8 stars 2 forks source link

TTS support #3

Open cantalupo555 opened 2 weeks ago

cantalupo555 commented 2 weeks ago

Would it be possible to add TTS support? https://platform.openai.com/docs/guides/text-to-speech

Thanks for the add-on.

piazzatron commented 2 weeks ago

I was thinking of supporting this in the future. I'll add it in a future version :)

In the mean time, I've been using the system TTS. It's not great but you can define it in your cards editor like so: {{tts ja_JP:ExampleTTS}}. More info here: https://docs.ankimobile.net/tts.html

piazzatron commented 1 week ago

Hey @cantalupo555, as I'm thinking about implementation I'd love to know a little bit more about how you're imagining using this one. Were you imagining something like a smart field with an audio type instead of a text type (the rest of the prompt behavior staying the same), or more akin to a new option to read out any existing field using TTS?

cantalupo555 commented 1 week ago

I'm using Language Tools. It automates the creation of my language deck. Just like the translation... and TTS.

https://youtu.be/OrQTHFxSS0Q&t=78

image

image

piazzatron commented 1 week ago

Interesting – could definitely add something like this.

As it stands, does this add-on play well with Language Tools?

werererer commented 1 week ago

I am using it in a similar fashion actually.

  1. Fill out one field with relevant information
  2. Let all the other fields Autogenerate.

And I am doing this like very quickly.

Currently using chinese support plugin for the audio thought. Having a single plugin would ofc streamline everything.

https://ankiweb.net/shared/info/1752008591

hienstorfer commented 2 days ago

Text do speech is already there: hypertts. It really works well with Azure, ElevenLabs et al. https://ankiweb.net/shared/info/111623432

piazzatron commented 2 days ago

Re the above, I agree it would be compelling to have TTS + Language tools functionality in a single add-on, though it would expand the scope of this project significantly. I'll probably do it anyways.