I have one note with a bunch of clozes, each containing text and a sound.
Add fields to the built-in Cloze note type, just to support this one note? That doesn’t seem like the right solution. Likewise adding a new note type just to support this one note doesn’t seem like the right solution.
What seems most natural to me is that sounds inside a cloze should not play while occluded. No?
Cloze is intended to visually hide text that is in sequence with other text – to fill in the _____ in a sentence. But an audio file isn’t in sequence with the text in your field, so it doesn’t make sense to have it be occluded using cloze.
What creates this sort of limitation for how you can present your information on cards is having the audio and text in the same field to begin with. Your notes will be more flexible if you don’t do that, and keep different media – text, audio, video, images – in separate fields.
Even if it’s hidden, the sound will still work. I used the following in the design:
<p style="display: none;">[sound:_05s.mp3]</p>
As far as I know, the playback algorithm simply loops through the map, collects the entire list of sounds, and plays them; it doesn’t look at the code or any complex conditions. For this type of map, if anything changes, the help should be updated to explain how this can be done.
I understand you put them in sequence – but there’s nothing about “foo [sound:foo.mp3]” that is meaningful, or needs to be in sequence to be understood. If you just want the word on the front and the audio on the back, that’s a basic card with the word and the audio in 2 separate fields.