# Default tone instead of sound file

**URL:** <https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120>\
**Category:** Online experiments\
**Tags:** sound, pavlovia\
**Created:** [April 7, 2021, 8:27pm UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120 "2021-04-07T20:27:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LouisScheu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/louisscheu/32/15483_2.png) [@LouisScheu](https://discourse.psychopy.org/u/LouisScheu)\
**Post date:** [April 7, 2021, 8:27pm UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120/1 "2021-04-07T20:27:12Z")

</div>

URL of experiment:  
[https://run.pavlovia.org/lscheu/eeg/?\_\_pilotToken=98f13708210194c475687be6106a3b84&\_\_oauthToken=715e074dc10661e645dc65aedeff894dc31611467ab882f0610b4563d9f03dbd](https://run.pavlovia.org/lscheu/eeg/? __pilotToken=98f13708210194c475687be6106a3b84&__ oauthToken=715e074dc10661e645dc65aedeff894dc31611467ab882f0610b4563d9f03dbd)

> **[Sign in](https://gitlab.pavlovia.org/users/sign_in)**
>
> Sign In/Register

Description of the problem:  
I want to administer three sound file per trial to a user (a question, an inter stimuli silence and an answer), followed by a rating period. Sound files are accessed via paths in the conditions file.  
While the experiment works offline (disabling the code component in the instructions routine (which fixes the asarray javascript issue)) well, online only the default tone (a C) is played instead of the wanted soundfile.  
I have tried the following:

- Specify a non random order (sequential)
- Use a csv instead of a excel sheet
- Use MP3 instead of WAV
- created a new excel sheet (as suggested in this post a previous post)  
I am not quite sure what else I can try. Further, I am unsure whether audio tracks are even implemented in PsychoJS already?

Thanks for the help!

---

<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:** [April 7, 2021, 10:00pm UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120/2 "2021-04-07T22:00:02Z")

</div>

I use audio files online . Please could you show your audio component and or related code?

---

<div class="post-metadata">

**Author:** ![LouisScheu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/louisscheu/32/15483_2.png) [@LouisScheu](https://discourse.psychopy.org/u/LouisScheu)\
**Post date:** [April 8, 2021, 8:56am UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120/3 "2021-04-08T08:56:11Z")

</div>

Thank you for having a look!  
Please find below some screenshots of how the experiment is set up and my conditions file.  
You can find the whole experiment on GitLab in the OP.

 ![Screenshot_11](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/d/9d84f8a7f9d3f539ddf01e56614d7986d0a81127.png)  
 ![Screenshot_1](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/8/28cdf3d80a52111211c014534c6786ce50e33796.png)

---

<div class="post-metadata">

**Author:** ![LouisScheu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/louisscheu/32/15483_2.png) [@LouisScheu](https://discourse.psychopy.org/u/LouisScheu)\
**Post date:** [April 8, 2021, 8:59am UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120/4 "2021-04-08T08:59:46Z")

</div>

other images:

 ![Screenshot_4](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/4/d4b571802960db3ec3767de499b3b569674a2636.png) ![Screenshot_3](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/8/d/8df37a4a57c3aae945f669d7c0934fff9772ddc1.png)

---

<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:** [April 8, 2021, 9:17am UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120/5 "2021-04-08T09:17:32Z")

</div>

ISIs don’t work online so set during ISI is likely to fail.

Also \ should be replaced with / in your Excel

---

<div class="post-metadata">

**Author:** ![LouisScheu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/louisscheu/32/15483_2.png) [@LouisScheu](https://discourse.psychopy.org/u/LouisScheu)\
**Post date:** [April 8, 2021, 9:47am UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120/6 "2021-04-08T09:47:44Z")

</div>

You are an absolute godsend! Thank you, removing the ISI resolved my issue!

---

<div class="post-metadata">

**Author:** ![snick51192](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@snick51192](https://discourse.psychopy.org/u/snick51192)\
**Post date:** [September 18, 2022, 4:08pm UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120/7 "2022-09-18T16:08:50Z")

</div>

I’m running into a similar problem. In my experiment, I have various musical clips in each routine/trial. It was running smoothly both in Builder and also online in pilot mode and when I first put it to run on Wednesday night. I posted a couple of updates on Thursday morning and it still ran smoothly after that, but now it’s started to play the default C = 440 tone whenever an excerpt is supposed to play, both in the practice, where audio clips are fixed, and in the trials, where they are variable according to a conditions file. I’m really not sure what changed!

This is a screenshot of the practice routine, where fixed excerpts are supposed to play:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/a/5aaa4589b3bce0c0d9fc23412261affe6a11d245.png)

This is the one of the sound components in the practice:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/e/5e414079fc1fcf5ad7dea25cbf5a994283dae1a1.png)

Thanks very much for any suggestions on this!

All best,  
Nicky

---

<div class="post-metadata">

**Author:** ![lnalborczyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lnalborczyk/32/31563_2.png) [@lnalborczyk](https://discourse.psychopy.org/u/lnalborczyk)\
**Post date:** [September 8, 2023, 2:06pm UTC](https://discourse.psychopy.org/t/default-tone-instead-of-sound-file/22120/8 "2023-09-08T14:06:21Z")

</div>

I have the same issue, where my audio file (mp3) is replaced by a tone which plays continuously…
