piazzatron / anki-smart-notes

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

Remove HTML tags during TTS #34

Closed libukai closed 2 weeks ago

libukai commented 2 months ago

Many automatically generated cards via plugins will have HTML tags appended. It is recommended to remove all tags when performing TTS speech synthesis to ensure the generated speech meets expectations.

piazzatron commented 2 months ago

Good callout, will add this in the near future.

For now, as a workaround you can create a field on your card with a prompt to remove all HTML in the field you want to speak (doesn't have to be a visible field), use a fast/cheap model like 4o-mini, and then wire that field up to the TTS field.

libukai commented 2 months ago

Yes, I'm currently using this workflow, and I hope the new features will be launched soon

libukai commented 1 month ago

When will this feature be added, like HyperTTS?

CleanShot 2024-10-12 at 11 12 45@2x

piazzatron commented 1 month ago

Should be this coming week :)

piazzatron commented 1 month ago

This is out in 2.3.0+! Take it for a spin and let me know how it works for you.