Randomly select from a large number of audio files | XM Community
Question

Randomly select from a large number of audio files


I have about 2,000 total audio files that fall into 20 different categories. I would like to make 5 questions for each of these categories (100 total questions) - each question would randomly select one audio file from the corresponding category to embed. So far I've uploaded all the files into my library into a different folder for each category. I don't mind manually making a different question for each of the 20 categories, but I'd like to not have to manually do something for each of the 2,000 audio files. Right now the only thing I can think of is using javascript to randomly select one of the links in the library, and displaying that with html. However, the links to the files in the library don't seem to have any kind of pattern to their names, which would involve manually copying all 2,000. Is there an easier way to do this, like listing out all the links within a folder in the library?


9 replies

Userlevel 7
Badge +27

You can do this:

  1. Go to Account Settings -> Qualtrics IDs -> Library containing the images.

  2. Copy and paste the file names and image ids for each of your folders into a spreadsheet

  3. Create urls by using a formula to concatenate image ids to a base url

Hmm, When I go there and click on the Library with my account name, all that comes up is a mostly blank page titled "Library IDs" that just says "Mailing Lists: None". Could there be something I'm not setting up right about my library? I don't see any of my folders in Account Settings -> Qualtrics IDs. Or could this be because my account doesn't have access to the API?

Userlevel 7
Badge +27

https://www.qualtrics.com/community/discussion/comment/27507#Comment_27507Maybe you uploaded the images to a group library? Graphics folders will be a groups labeled "Graphics (Folder Name)".

https://www.qualtrics.com/community/discussion/comment/27508#Comment_27508Thanks for the quick response! Since they're audio files, I created the folders under Files Library. The only libraries showing up in Account Settings are My Library and Global Library.

Userlevel 7
Badge +27

https://www.qualtrics.com/community/discussion/comment/27509#Comment_27509Unfortunately and strangely, file ids are not listed under Qualtrics IDs. So, my answer doesn't apply.
Also unfortunately, there is no api that will list the file ids either.

Hi TomG,

Can this functionality be added? I need it desperately, and I imagine there are tons of other people who could really use this (as evidenced by the original commenters request). Being able to use the files in my library is a big part of the reason Qualtrics is helpful, and without this functionality of being able to collect URLs in aggregate to upload to loop and merge fields, Qualtrics is less useful and makes other programs like FindingFive a more appropriate option for my institution.

It seems like what we need is already possible for images, so what would it take to get the same set up for other file types?

Userlevel 7
Badge +27

https://www.qualtrics.com/community/discussion/comment/31743#Comment_31743You'll have to submit a Product Idea through the Community and hope that Qualtrics addresses it. Post a link to your Product Idea post here and I'll upvote it. 🙂

Hi TomG,
Thanks! Here is a link to the Idea:
https://www.qualtrics.com/community/discussion/13211/integrate-files-from-libraries-en-masse-in-loop-and-merge/p1?new=1

Badge

Was this idea ever implemented? I am looking to do something similar to this (1000 audio files that need to be displayed randomly)

Leave a Reply