Wav file issue in Safari only

URL of experiment: stroop_3 [PsychoPy]

Description of the problem: My experiment works perfectly on chrome but when i tried using it on safari it shows the following error

i checked Wav file issue in Safari
solved by @apitiot but it seems like the issue was solved by upgrading the psychopy version but i am using the 2020.2.10 and doesnt seems to help.


Can you try .mp3 files instead?

1 Like

yes ill try to export all the wav files to mp3. it supposed to works with mp3?

It works! thanks :slight_smile:

Hi / do you have any idea why mp3 files dont work on the builder?

I believe isn’t a copyright issue.

I use a both component to use wav or ogg locally and mp3 online.

yes i tried it but every time i sync the builder to pavlovia its becoming an issue.
so now i cant run my experiment on the builder at all @wakecarter

How have you tried to tell PsychoPy to use wav locally and mp3 online?

i have no idea how to it. should i use the code for that?

Let’s say you have a column in Excel called SoundName

You could have SoundFile=SoundName+’.wav’ in Python and SoundFile=SoundName+”.mp3”; in JavaScript.

You’d probably then need to add the mp3 files as resources in the online tab of the Experiment Resources

thank you!
I actually got another tip from @sotiri and changed the index.html in line 27 to
script type=“text/javascript” src=“https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.1/howler.min.js”>

instead of
script type=“text/javascript” src=“https://cdnjs.cloudflare.com/ajax/libs/howler/2.1.1/howler.min.js”>
and my wav files work now on safari :slight_smile:

1 Like