Slow loading of audio files

PennController for IBEX Forums Support Slow loading of audio files

This topic contains 1 reply, has 2 voices, and was last updated by Jeremy Jeremy 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6171
    Avatar
    Aymericc
    Participant

    Dear all,

    I am going to run an acceptability judgment task, the stimuli consist of numerous audio files (more than 100). These audio files are all uploaded in the ‘resources’ place.

    When I run the experiment, the introduction page works well, but the resources are preloading after each trial. I tried several solutions, but none of them worked:

    1. adding a “PennController.CheckPreloaded()” at the top line of the script, or between the introduction page and the trials
    2. updating PennController from git repo (“https://github.com/PennController/Sync”, using “main” or “dev-cory” as a branch)

    Do you think there is another way for having all the audio files preloaded before the begining of the ‘template’ part, such that the files don’t have to pre-load another time during the experiment?

    Thank you in advance!

    Aymeric

    #6173
    Jeremy
    Jeremy
    Keymaster

    Hello Aymeric,

    More than 100 audio files sounds like a lot for the PCIbex Farm’s capacity. Your experiment will have to send one request per audio file to the servers, and since the PCIbex Farm servers are doing poorly these days, it’s not much of a surprise that preloading is slow. Some of your requests probably take time to be accepted, some of them maybe even never succeed.

    If you can do it, I highly recommend that you package your audio files into a single zip file that you upload to your servers/s3 bucket. The procedure is described on this page: https://www.pcibex.net/wiki/zipped-resources/

    Another thing to be aware of is that, at the moment, Safari doubles up on the many-request issue, it just doesn’t like handling many requests at once.

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.