Open EugeneTarasenko opened 2 years ago
can you share your card templates ?
Sure.
Back Template:
<div class="text">
Голицынский Ю.Б – Грамматика
<br>
АРТИКЛЬ
<br>
{{Exercise number}}
<br>
{{Exercise task}}
</div>
<div class="divider"></div>
<div class="text">
{{cloze:To solve}}
{{type:cloze:To solve}}
</div>
{{tts en_US voices=AwesomeTTS:Answer}}
<div class="divider"></div>
<div id="myButton" style="margin: 1rem 1rem; text-align: center">
<button onclick="myFunction()">Показать правила</button>
</div>
<div id="hint" style="display: none">
<div class="text">
{{edit:Hint}}
</div>
</div>
<script>
function myFunction() {
var x = document.getElementById("hint");
if (x.style.display === "none") {
x.style.display = "block";
document.getElementById("myButton").style.display = "none";
} else {
x.style.display = "none";
}
}
</script>
Fields:
Card example:
Back:
I'm using an old 1.46 version of AwasomeTTS. Can this problem occure because of the old version?
From the card template, i don't see anything wrong, so it's not clear to me why you're hearing the audio twice. You could try debug logging to file if you understand how to set it up: https://github.com/AwesomeTTS/awesometts-anki-addon/wiki/Debug-Logging is there something preventing you from upgrading to the latest AwesomeTTS?
@luc-languagetools, I have just updated it to the latest version 1.60 but the problem still remains.
Nevertheless, thanks for your attention and replies.
what about the debugging logging method I suggested, are you able to try that ?
@luc-languagetools What command should I use and what kind of information should I retrieve? Is there a comprehensive guide to using the debugging logging feature?
can you try following these instructions ? https://github.com/AwesomeTTS/awesometts-anki-addon/wiki/Debug-Logging
Yes, I did. What should I do next? What commands should I enter after that?
Entering the log help
command gives me a list of suggested commands. Which command should I use to get logging data?
here i'm a bit less familiar, are you attempting to run the Anki command ? Does the Anki application start up ? And did you set the require environment variable ? I'm planning on getting a hold of a mac soon to try to make this whole process easier.
When I try to use this code
{{tts en_US voices=AwesomeTTS:Answer}}
to speak the answer it speaks the text once when editing/previewing a card, and, for some reason, twice when reviewing. Is it a bug, is there any way to fix it and prevent speaking the text twice?https://user-images.githubusercontent.com/87163666/161663042-4d3d785e-d676-4221-9817-240ab76eafd5.mp4