# Wav file issue in Safari only

**URL:** <https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346>\
**Category:** Online experiments\
**Tags:** sound, pavlovia\
**Created:** [February 10, 2021, 8:50am UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346 "2021-02-10T08:50:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![chayabenyehuda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chayabenyehuda/32/12429_2.png) [@chayabenyehuda](https://discourse.psychopy.org/u/chayabenyehuda)\
**Post date:** [February 10, 2021, 8:50am UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/1 "2021-02-10T08:50:39Z")

</div>

URL of experiment: [stroop\_3 [PsychoPy]](https://run.pavlovia.org/mlwell/stroop-demo/html)

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

 ![safari error](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/3/93d5730777c48e88cabcadbab525b2828fc60f0f.jpeg)

i checked [Wav file issue in Safari](https://discourse.psychopy.org/t/wav-file-issue-in-safari/17433)  
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.

Thanks

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 10, 2021, 8:54am UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/2 "2021-02-10T08:54:20Z")

</div>

Can you try .mp3 files instead?

---

<div class="post-metadata">

**Author:** ![chayabenyehuda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chayabenyehuda/32/12429_2.png) [@chayabenyehuda](https://discourse.psychopy.org/u/chayabenyehuda)\
**Post date:** [February 10, 2021, 9:09am UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/3 "2021-02-10T09:09:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chayabenyehuda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chayabenyehuda/32/12429_2.png) [@chayabenyehuda](https://discourse.psychopy.org/u/chayabenyehuda)\
**Post date:** [February 10, 2021, 10:18am UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/4 "2021-02-10T10:18:10Z")

</div>

It works! thanks 🙂

---

<div class="post-metadata">

**Author:** ![chayabenyehuda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chayabenyehuda/32/12429_2.png) [@chayabenyehuda](https://discourse.psychopy.org/u/chayabenyehuda)\
**Post date:** [February 10, 2021, 11:55am UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/5 "2021-02-10T11:55:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 10, 2021, 1:18pm UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/6 "2021-02-10T13:18:15Z")

</div>

I believe isn’t a copyright issue.

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

---

<div class="post-metadata">

**Author:** ![chayabenyehuda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chayabenyehuda/32/12429_2.png) [@chayabenyehuda](https://discourse.psychopy.org/u/chayabenyehuda)\
**Post date:** [February 10, 2021, 1:41pm UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/7 "2021-02-10T13:41:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 10, 2021, 1:56pm UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/8 "2021-02-10T13:56:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chayabenyehuda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chayabenyehuda/32/12429_2.png) [@chayabenyehuda](https://discourse.psychopy.org/u/chayabenyehuda)\
**Post date:** [February 10, 2021, 5:45pm UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/9 "2021-02-10T17:45:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 10, 2021, 6:02pm UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/10 "2021-02-10T18:02:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chayabenyehuda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/chayabenyehuda/32/12429_2.png) [@chayabenyehuda](https://discourse.psychopy.org/u/chayabenyehuda)\
**Post date:** [February 10, 2021, 6:32pm UTC](https://discourse.psychopy.org/t/wav-file-issue-in-safari-only/20346/11 "2021-02-10T18:32:32Z")

</div>

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](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](https://cdnjs.cloudflare.com/ajax/libs/howler/2.1.1/howler.min.js)”\>  
and my wav files work now on safari 🙂
