Open mrmo123 opened 3 years ago
Were you using batch generation or on-the-fly ? Not clear what your expectation is and what the actual result was.
Batch generation. If a note begins with or ends with a cloze (combined situation in the aforementioned image), AwesomeTTS will don't recognize the cloze. It will recognize the cloze if there is a hint (e.g. {{c1::answer::HINT}}.
Forgot to mention, in the settings (Handling text from a note field), I'm converting ellipses (...) to the word "blank."
There is no issue with on-the-fly, with the same settings (ellipses (...) to the word "blank").
If you are using cloze cards, I would recommend you use on the fly TTS. See here for how to set it up: https://languagetools.anki.study/tutorials/awesometts-on-the-fly-tts
Was able to replicate this
I had an issue when generating an audio file. The add-on ignores cloze-tag if it comes at the very beginning or very end.
I fixed the issue by removing these two lines of code. text.py Line 277: text = RE_ELLIPSES_LEADING.sub(' ', text) Line 278: text = RE_ELLIPSES_TRAILING.sub(' ', text)
This has worked for my purposes. However, I understand that it will have some downstream effects involving other portions of your add-on.
Thanks again for the well written/commented code. It was easy for me to find the bug! Wonderful add-on!