# Pavlovia playing first sound file only

**URL:** https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261
**Category:** Online experiments
**Created:** [June 6, 2023, 2:56am UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261 "2023-06-06T02:56:54Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Sidhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/david_sidhu/32/14484_2.png) [@David\_Sidhu](https://discourse.psychopy.org/u/David_Sidhu)
#### Post date: [June 6, 2023, 2:56am UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/1 "2023-06-06T02:56:54Z")

</div>

I have an experiment that works fine locally, but when I try to run it on PsychoPy it will only play an audio file on the first trial. After that it will go ahead with the trials (presenting visual stim and collecting a response as normal) but won’t present audio.

Any idea what could be causing this?

---

<div class="post-metadata">

### Author: ![MaMorand](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mamorand/32/36547_2.png) [@MaMorand](https://discourse.psychopy.org/u/MaMorand)
#### Post date: [July 5, 2023, 1:49pm UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/2 "2023-07-05T13:49:17Z")

</div>

I have the same problem. Did you find any solutions @David_Sidhu? This problem does not exist with the experiments that I’ve built with a 2022 psychopy version…

edit: However, re-syncing it when opened with an earlier version of psychopy did not solve the problem

---

<div class="post-metadata">

### Author: ![David\_Sidhu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/david_sidhu/32/14484_2.png) [@David\_Sidhu](https://discourse.psychopy.org/u/David_Sidhu)
#### Post date: [July 5, 2023, 2:19pm UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/3 "2023-07-05T14:19:39Z")

</div>

Unfortunately no. It’s very frustrating! I ended up switching programs for this one.

Please do let me know if you find an answer!

---

<div class="post-metadata">

### Author: ![s.bassoon](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@s.bassoon](https://discourse.psychopy.org/u/s.bassoon)
#### Post date: [July 12, 2023, 11:55am UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/4 "2023-07-12T11:55:01Z")

</div>

Hi, I’m having this [same issue I think](https://discourse.psychopy.org/t/loop-containing-audio-works-on-first-loop-but-no-audio-thereafter/35694), in v2022.2.5. Do you mind me asking what program you are using instead? It seems that PsychoPy has a quite a few issues with audio

---

<div class="post-metadata">

### Author: ![Yibo](https://avatars.discourse-cdn.com/v4/letter/y/d26b3c/32.png) [@Yibo](https://discourse.psychopy.org/u/Yibo)
#### Post date: [September 4, 2023, 10:02am UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/5 "2023-09-04T10:02:02Z")

</div>

Hello, I had a similar problem with my procedure. I adjusted the start time of the sound from 0 to 0.01 seconds and the problem was solved.

---

<div class="post-metadata">

### Author: ![MaMorand](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mamorand/32/36547_2.png) [@MaMorand](https://discourse.psychopy.org/u/MaMorand)
#### Post date: [September 4, 2023, 11:11am UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/6 "2023-09-04T11:11:45Z")

</div>

It works with v2022.2.4, but good to know @Yibo that it also works with later versions if you adjust the start time!

---

<div class="post-metadata">

### Author: ![Al\_Magill](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/al_magill/32/39943_2.png) [@Al\_Magill](https://discourse.psychopy.org/u/Al_Magill)
#### Post date: [November 3, 2023, 3:42pm UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/7 "2023-11-03T15:42:59Z")

</div>

Thank you so much, Yibo, I ran into the same problem but adjusting the start time has solved it for me.

---

<div class="post-metadata">

### Author: ![Mou\_Yifan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mou_yifan/32/38724_2.png) [@Mou\_Yifan](https://discourse.psychopy.org/u/Mou_Yifan)
#### Post date: [October 26, 2024, 9:55am UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/8 "2024-10-26T09:55:50Z")

</div>

Thank you so much. It finally works.

---

<div class="post-metadata">

### Author: ![Daannie](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@Daannie](https://discourse.psychopy.org/u/Daannie)
#### Post date: [March 6, 2025, 12:04pm UTC](https://discourse.psychopy.org/t/pavlovia-playing-first-sound-file-only/35261/9 "2025-03-06T12:04:50Z")

</div>

Thank you Yibo. Same problem solved!
