I have two different note types and one preset for them. When I turn off “Don’t play audio automatically” in both note types the audio plays once. When I turn on “Don’t play audio automatically” in the first note type the audio plays once, but in the second note type the audio plays twice. I checked the both note types and have only one field “Audio”. I can’t understand why in the second note type the audio plays twice automatically? How can I do to play it only once?
There can be only one field, but it can be inserted several times in the design, and even inserted hidden, but it will be pronounced as many times as there are in the card design.
The code can vary. For example, there’s only one field here, but it’s shown twice.
First, we say it in English, then the Russian part will be spoken, and then back to English. But since the English part shouldn’t be visible, it’s hidden using the “display:none” style.
So it should be visible, but you haven’t shown what you have there.
There’s also a preview in Browse. You can check which cards are voiced and how they’re presented. It’s possible there are two identical audio files in the same field. You need to look at everything specifically; it’s not clear. As usual, you need to launch Anki without any add-ons (hold Shift while launching).
Is this the whole template or is there anything else below the code on the screenshots? What’s there in the styling tab and what about the second note type?
It also would be helpful to see the contents of each field referenced in the screenshot.
Other note types and presets work fine. Every audio only plays once. Only in this certain note type audio plays twice. The whole template of the note type:
I meant in terms of their template code and field contents (you can copypaste the whole code here as a text wrapped in ``` instead of fiddling with screenshots). The differences might give a clue.
Also, you might want to try running Tools → Check Database
I still can’t reproduce this. Can you also share the source code for your field contents (shown by clicking the <> button at the top right corner of each field)?
Also, you didn’t confirm it, but is there really nothing else below the front and back code shown on your screenshots? The styling tab references a lot of elements not present here, so it is somewhat suspicious. Furthermore, if you do have any audio played automatically at all when the playback is turned off, then there must be some script or add-on involved.
What did the test show?
As additional information, what Anki version do you use? Does the double playback happen only on certain notes, or on all notes made from the note type in question? Did you check those notes on AnkiWeb or in a mobile app?
I use a note type with the add-on Fill the blanks - Multiple type:cloze support. I completely forgot to try without add-ons. I just checked without this specific add-on and everything works like it should do. So I guess the problem is in the add-on. I’ll try to write the author of the addon and ask about this problem. I only use desktop Anki 26.05. The thing is when I turn on “Don’t play audio automatically” the audio plays twice, when I turn off this function and press the play button the audio plays only once.
Oops, my mistake. I meant when I turn on “Don’t play audio automatically” and press the play button the audio is played once, when I turn off this function the audio is played automatically twice. By the way, it turned out that the other note type has the same problem. An audio should be played only once but it is played twice. I don’t know why these things are happened. Thank you for trying to understand the problem.
Could you share the deck or simply export it to an APK file and share a link to it? You could upload it to Google Drive or a similar online resource where others can download it. Then we could see for ourselves what the card design is and how it’s voiced. Just be sure to check all the boxes when exporting so we can see the deck’s configuration.
or, alternatively, share just the two notes in question by selecting them in the browser and using Notes → Export Notes. This might help if the whole decks by themselves are too large.
Also, since this thread is older than the full release of 26.05, does it mean that you’ve been experiencing this in a beta? It’s worth trying to check how this works in any stable version instead.
I’ve checked how this works on Windows and Mac on 26.05 and 25.09.5. I’ve created a new profile where I exported the whole collection. Then I chose some notes with different note types and presets and created a new test desk. In this profile the problem is the same. After that I created another profile where I exported only this test desk and the problem disappeared. Everything works fine. I think I just have to create a new profile and export other decks and see how it works.