psychopy.org | Reference | Downloads | Github

Problems when running with sound stimuli

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

OS (e.g. Win10): Macbook pro. 10.10.5
PsychoPy version (e.g. 1.84.x): v.1.84.2
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
I was trying to add a sound stimuli

What did you try to make it work?:
As the demo in Youtube (https://www.youtube.com/watch?v=WKJBbVnQkj0&t=354s ), I put the sound file (named ‘xxx.wav’) on the desktop, and typed desktop/xxx.wav in the blank after ‘sound’ in the sound properties.

What specifically went wrong when you tried that?:
Every time I run the program, either the following condition showed up:

  1. There was only a grey background (full screen), and both esc and command+Q couldn’t work. So I had to shun down (forced) the computer and restart.
  2. There was no audio sound played during the process, and there was an error pop out saying the sound ‘desktop/xxx.wav’ couldn’t be found.

P.s. the experiment only contains one routine (with a test stimuli and a sound stimuli),it works fine when I delete the sound stimuli (where there is only a test stimuli).

Another question is how to make it NOT full screen when running?

Many thanks in advance

'desktop/xxx.wav' is not a valid location for a file on OS X. It would imply that there is a desktop folder in your experiment folder, when in fact the desktop folder is either within your user folder, or even in the latest versions of OS X, held in your iCloud drive. You need to do dome googling for how to specify file paths in OS X. But even then, don’t use files which are in the junk-pit of your desktop. Make a folder specifically for your experiment and organise it. if you specify the sound with a relative path like xxx.wav than PsychoPy will look for it in the same folder as your experiment, or you could make a sound sub-folder in your experiment folder, and refer to it like sound/xxx.wav.

Lastly, you can make the experiment not run in full screen by clicking the Experiment settings icon on the Builder toolbar. This will mean that you won’t have to take drastic measures like restart your computer. But make sure you set it back to full screen when any issues are ironed out and you are running your experiment for real (performance is much better that way).