# Audio- 1 to be automatic; Audio- 2 on CR

**URL:** <https://forums.ankiweb.net/t/audio-1-to-be-automatic-audio-2-on-cr/71222>\
**Category:** Card Design\
**Created:** [September 26, 2026, 5:59pm UTC](https://forums.ankiweb.net/t/audio-1-to-be-automatic-audio-2-on-cr/71222 "2026-09-26T17:59:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davet](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@davet](https://forums.ankiweb.net/u/davet)\
**Post date:** [September 26, 2026, 5:59pm UTC](https://forums.ankiweb.net/t/audio-1-to-be-automatic-audio-2-on-cr/71222/1 "2026-09-26T17:59:31Z")

</div>

On Windows 10 laptop, using Cloze cards.

I want audio- 1 to play automatically but keep audio- 2 hidden behind a clickable button. Audio is set to ‘Play automatically’. How do I alter the following code to do this?

```plaintext
'''''''

</>

 {{Audio- 1}}

 {{Audio- 2}}

{{type:cloze:Text}} {{cloze::Text}}

<br>><hr>> <br>

 <div style='font-family: "Arial"; font-size: 20px;'></div> {{Back- Extra}}<br> <br><br>

''''''

</>

```

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [September 26, 2026, 7:14pm UTC](https://forums.ankiweb.net/t/audio-1-to-be-automatic-audio-2-on-cr/71222/2 "2026-09-26T19:14:48Z")

</div>

I put your text in a code block, because some of it wasn’t being displayed. But you should check to make sure it is accurate to what is on your template.

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [September 26, 2026, 7:21pm UTC](https://forums.ankiweb.net/t/audio-1-to-be-automatic-audio-2-on-cr/71222/3 "2026-09-26T19:21:08Z")

</div>

If you only have _a single audio file_ in the first audio field, just add the following script to the respective side of your card template:

```JavaScript
<script>
document.querySelector(".soundLink").click();
</script>

```

It would work better if you **disable** audio autoplay in deck settings to avoid occasional double playback on card opening.

For a more elaborate solution, check out this thread:

> [@Selective autoplay of audio for certain notes](https://forums.ankiweb.net/t/selective-autoplay-of-audio-for-certain-notes/47544):
>
> I have a card type that autoplays several media fields in sequence – some fields have a single audio file ([sound:\_\_.mp3] tag), some multiple. My goal: Every now and then, I have a note where I want some of the audio files to autoplay, but for others to be skipped. I want the skipped ones to still show up as play buttons, so I can manually play them if I want to – but it’s fine (or even preferrable) if they look a little different than the standard play button. Needs to work on Desktop and Ank…

---

<div class="post-metadata">

**Author:** ![davet](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@davet](https://forums.ankiweb.net/u/davet)\
**Post date:** [September 29, 2026, 2:08pm UTC](https://forums.ankiweb.net/t/audio-1-to-be-automatic-audio-2-on-cr/71222/4 "2026-09-29T14:08:54Z")

</div>

Hi Danika\_Dakika,  
I’m not computer illiterate enough, I’m afraid to follow the detailed instructions you’ve suggested.  
I added your ‘query\_Selector’ suggestion without success.  
If you could send me a version of my html with your suggestion included, it would be much appreciated.  
To recap on the problem.  
My html has the data in Back- Extra and I use HyperTTS to put one part in Audio- 1 field and some of the remainder into Audio- 2. BUT they both play when I reveal the answer in Back- Extra. How do I get Audio- 1 to play automatically and Audio- 2 to only play when I click on the audio icon?  
Regards  
Dave  
My current html file is:-

```auto
{{Audio- 1}}

{{Audio- 2}}

{{type:cloze:Text}}

{{cloze::Text}}<br>><hr>>

<br>

<div style='font-family: "Arial"; font-size: 20px;'></div>

{{Back- Extra}}<br>

<br><br>

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [October 29, 2026, 2:09pm UTC](https://forums.ankiweb.net/t/audio-1-to-be-automatic-audio-2-on-cr/71222/5 "2026-10-29T14:09:14Z")

</div>

Closed on October 29, 2026, 2:09pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
