Pavlovia online experiment only recording final audio trial

Hello PsychoPy community!

I am conducting a picture naming experiment, and I’ve uploaded my experiment from PsychoPy to Pavlovia. The experiment asks participants to speak out loud the name of the image presented, and I have microphone settings enabled to record the audio.

The problem: When piloting the study, the microphone functionality works - If I have five images presented, I get an audio file for each word/trial (so five audio files total). However, when I officially run the experiment using participant credit, I only get a single audio file, and it is always for the last trial. I give over 15 seconds of time for participants to give Pavlovia microphone access, so I don’t think it is a lag in microphone functionality. I don’t know what I can do to get the running mode of the online experiment to record all of the audio! Does anyone have any ideas on how to correct this?

Thanks so much in advance!

Hi @akoch, thanks for flagging. Please, would it be possible to post a link to your study so I can take a closer look? Thanks, x

Hi @thewhodidthis , here is the link: Experiment [PsychoPy]

And here is the link to the gitlab. Thank you very much for responding!

Hi @akoch, cool, thanks, sorry could you also give my account developer access to the repo on GitLab, thank you, x

Sorry about that! Gave you access.

Super, on it, thanks, x

Hi @akoch, thanks for giving me access. I could be missing something, but looking at lines 1753 to 1756 it seems that all clips are given the same tag, which leads me to believe that they end up getting saved under the same filename, overwritten on each trial, which would explain why you are left with only the last clip when running the experiment on Pavlovia.

One fix for this might be to append a timestamp to the tag. That should theoretically generate different files for each trial, but I cannot say with confidence how to achieve that from within PsychoPy itself without manually editing the main Experiment.js script.

I tried running the support fork with the aforementioned changes, but do not know where to look for the sound files!

I am facing the same problem: When running my priming experiment on Pavlovia, I only get a single audio file saved in the server, instead of an audio file per response (that means a total of 32 audio files per session). That single audio file gets always saved as PARTICIPANT_expName_date_timestamp, edit but the timestamp captures only the time at the beginning of the session, it doesn’t update with the trials.

Is there a way to resolve this issue?

Thank you so much in advance!

Thanks for the insights @FPerini, this looks like one for @apitiot maybe, x

Hello @FPerini,

Could you indeed share your experiment with me so I can have a look?


Hello @apitiot , thank you so much for your help! I gave you access to my experiment. Here is the link.

As a temporary solution, I followed @thewhodidthis suggestion and added a +counter to the microphone tag in the .js file. Unfortunately I have to add it manually each time that I sync it with Pavlovia. I don’t know if there is a more comfortable way to do the same thing.

Thank you!

Thank you. As you point out, the feature is indeed available in PsychoJS. I have messaged the PsychoPy team and we are looking into Builder support for it. I’ll get back to you shortly.