The audio connected to the purple button is not a native Anki audio and is inserted by the card scripts instead, which is why it isn’t being processed by the app autoplay function. Unfortunately, there is no good way of combining embedded audio with audio referenced by card templates. There are two workarounds that might work in this case:
-
Add a
.click()JS after the card scripts on the back template to simulate the manual click after a constant delay. Depending on the delay and the duration of the card’s VocabAudio file, this will unavoidably either cut the automatic playback of the VocabAudio or introduce a pause between the VocabAudio and the Sentence audio. Until Anki implements an open API for this, exact control of audio playback will remain unavailable for card templates. -
The other option would be to forgo the card template’s tts function altogether and use native Anki tts. This will likely change the voice in which the sentence is read, but will completely fix the autoplay issue by using only native app functionality. To enable this, you’ll need two things:
- Search for
{{SentAudio1}}on the Back template and replace it with the following code:
{{#SentAudio1}}{{SentAudio1}}{{/SentAudio1}}{{^SentAudio1}}{{tts ja_JP:SentKanji1}}{{/SentAudio1}} - On the Front template, search for the template settings and change
playback: 'force'toplayback: 'default'to prevent the template from interrupting Anki autoplay.
Do this for the other SentAudio fields, if necessary. Also make sure to disable “Don’t play audio automatically” for all subdecks, not just the root deck.
- Search for