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?
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!
Hello!
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.
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. 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.
Cheers,