# Issues repeating an audio file across trials in 2021.2.3

**URL:** <https://discourse.psychopy.org/t/issues-repeating-an-audio-file-across-trials-in-2021-2-3/26856>\
**Category:** Online experiments\
**Tags:** sound, pavlovia\
**Created:** [January 17, 2022, 6:33am UTC](https://discourse.psychopy.org/t/issues-repeating-an-audio-file-across-trials-in-2021-2-3/26856 "2022-01-17T06:33:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [January 17, 2022, 11:17am UTC](https://discourse.psychopy.org/t/issues-repeating-an-audio-file-across-trials-in-2021-2-3/26856/2 "2022-01-17T11:17:47Z")

</div>

I tried adding some silence to the end of the sound files because I found it repeated better if the original sound hadn’t finished.

> [@Odd behaviour with repeating sound files](https://discourse.psychopy.org/t/odd-behaviour-with-repeating-sound-files/26331):
>
> URL of experiment: [dictation2 [PsychoPy]](https://run.pavlovia.org/Wake/dictation-sentences) Description of the problem: I have a sound file that I set up with a sound component with zero volume. In Begin Routine I have sound\_1.setVolume(1) sound\_1.play() In Each Frame I have: if '1' in keys: if sound\_1.status == PsychoJS.Status.FINISHED: sound\_1.play() else: sound\_1.stop() sound\_1.play() I’ve also tried if '1' in keys: if sound\_1.status == PsychoJS.Status.STARTED: …

---

_[View the full topic](https://discourse.psychopy.org/t/issues-repeating-an-audio-file-across-trials-in-2021-2-3/26856)._
