Import audio sound - wav file

https://we.tl/t-KkpVZMgYnx

Hi Torge,
I’ve tried to do a link…

Hopefully, it works.
Best regards Anna

Hi Anna,

thank you for uploading all the files. I think I could fix your experiment.

When I first ran it, it produced the following error:

It had to do with the ü key which you defined as the correct response (probably for “Überraschung” = surprise). PsychoPy probably doesn’t expect the German ü character as a key because it was mainly programmed for an English-speaking community.

When I replaced ü with u in the “corrAns” column of your XLSX and in the “allowed keys” field of your “key_resp_2” component, the experiment worked fine with me. I could hear all sounds, press all buttons and there were no errors.

So if you do the same in your main experiment with the 60 stimuli, it should do the trick.

Should you still get the self.sounds.remove(thisSound) error, use PsychoPy 1.90.2 like me and follow the steps I described before.

I have attached the corrected version and hope it helps. :wink:

Good luck with your thesis!
Torge

psychopy_Vortest.psyexp (5.7 KB)
MAV_Vortest_randomisiert angeordnet.xlsx (8.5 KB)

Dear Torge,

thank you so, so much for helping!! I think, the experiment is working now! :slight_smile: :slight_smile:
There is just one thing, I am wondering. The experiment runs, but there after doing it, there is always a error like this:

What do I have to do now?

Best regrads, Anna

Hi Anna,

I’m glad it helped. :slight_smile: Don’t forget to mark the solution in the thread so that others will know the problem has been solved. Did you have to change the sounddevice file or was it enough to correct the Ü problem?
The warning about the frames doesn’t matter in your case; you can ignore it.

Torge

Hi Torge,

ok, than I will ignore the error.
I used your corrected version and than it works! (I don’t have to change the sounddevice file anymore.)

Please, give me your adress, that I could send you a small present. I would like to say a heartfelt thanks for helping me so fast and successful!!!

Hi Torge,

Thanks for the solution. I was having the same issue with:

self.sounds.remove(thisSound)

By adjusting the code as you recommended, everything worked perfectly.

Jordan