Urgent Sound component not playing on some trials!

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): macOS Sonoma 14.3
PsychoPy version (e.g. 1.84.x): 2024.1.4 and 2023
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
Play an audio file (S-choose) at 8 seconds along with an image (I-choose) during an experiment, and the participant should indicate correctness by pressing a key on the keyboard.
(the length of each audio is around 1 sec)
What did you try to make it work?:

  • Reinstalling PsychoPy.
  • Using different versions of PsychoPy (2023.1.2 and 2024.1.4).
  • Changing the audio backend to PTB and sound device.
  • Testing different audio file sample rates (48kHz and 44.1kHz).
    What specifically went wrong when you tried that?:
    The audio file (S-choose) should play at 8 seconds along with an image (I-choose). While some sounds play normally in some trials, in other cases there is silence. The issue persists across different versions of PsychoPy and after multiple reinstallations. Changing the backend libraries and sample rates did not resolve the issue.
    I am unsure how to resolve this issue and would appreciate any help or suggestions.

Thank you in advance for your assistance!
Note: I tried it on other Mac also I had the same issue!!

Thank you, @wakecarter r and @Nathan_zhang

Unfortunately, I have encountered another issue where some audio files are not playing randomly during the experiment. I have tried using both PsychoPy 2023 and PsychoPy 2024.1.4, but the problem persists. I have also attempted deleting and reinstalling the software and changing the library to PTB and sound device, but the issue remains. Do you have any suggestions on how to resolve this?

Have you tried setting the start time to 0.1 seconds?

I would suggest that you try adding a static component and set the sounds during it, but that functionality seems to be disabled in 2024.1.4 and doesn’t work online.

You could try moving the components starting at 8 seconds to a new routine.

However, getting sounds to work is not my strong point.

Hi @wakecarter
I tried moving sounds to new routine and it worked, but unfortunately I need the exact timing in same routine to record RT, so what could be the issue if sound play in separate routine but not in same one ?