Unfortunately, it did not work. But I found another code on Reddit that worked:
<script>
var elem = document.querySelector(".soundLink, .replaybutton"); // AnkiMobile & AnkiDroid / AnkiDesktop
if (elem) { elem.click(); }
</script>
But the problem with this code is that, when you disable the autoplay, it still plays the first audio. Is there a solution for this? Thanks in advance.