Welcome, Guest
Username: Password: Remember me

TOPIC: How can audio files be attached?

How can audio files be attached? 2 years 8 months ago #72824

  • musicpsy
  • musicpsy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
Hi all,
I would like to put some audio data in the survey, and I am interested in
how participants response to the sounds.
How can I upload audio data in the survey? Thank you for your help in advance!
best,
musicpsy
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72827

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4266
  • Thank you received: 803
  • Karma: 368
Have a look at this workaround. It's kinda old but should still work.

docs.limesurvey.org/Workarounds%3A+Quest...g_audio_in_questions
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72829

  • musicpsy
  • musicpsy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
thank you for your prompt reply!
I just read the link, but where can I see the code?
I did not find a button to open the code in the LimeService.
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72830

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4266
  • Thank you received: 803
  • Karma: 368
Click Full Screen:

Capture_2012-01-25.PNG



And then Source:

Capture2_2012-01-25.PNG
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72831

  • musicpsy
  • musicpsy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
many thanks! I will try!
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72832

  • musicpsy
  • musicpsy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
I pasted the code, and I would like to chang the "template folder". But it only refers to "an absolute URL in the src parameter"(so it seems the path like "C:\\temp\\a.wav" does not work). What does this mean? should I save the audio data somewhere in the Internet? How should I do?
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72840

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
Usually those files should be stored on the server. Can you explain the problem in more detail?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72948

  • musicpsy
  • musicpsy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
ok, for instance, I would like to put a WAV file in a survey, and ask participants to make judgment(whether they like it or not).
Then according to the link (see above), I copied the code
"<embed height="20" width="128" autostart="false" controls="console"
loop="true" volume="50" src="{TEMPLATEURL}audio_1.mp3"></embed>"
in the LimeService Question source.
In the link page it says "template folder" refers to "an absolute URL in the src parameter".
Then how can I stored a file in a server? Where can I find a server? Sorry, I have no such experience.
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72952

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4266
  • Thank you received: 803
  • Karma: 368
You can upload the file as a survey resource.

1) Place the file in a zipped archive.

2) Go to Survey properties --> General setting --> Resources, browse to your zipped folder and upload it.
Capture3_2012-01-26.JPG


3) The path to the file will then be:
upload/surveys/yourSurveyID/yourFile.wav

4) so the embed code would look something like:
<embed height="20" width="128" autostart="false" controls="console"
loop="true" volume="50" src="upload/surveys/12345/audio_1.mp3"></embed>
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 2 years 8 months ago by tpartner.
The administrator has disabled public write access.

Re: How can audio files be attached? 2 years 8 months ago #72953

  • musicpsy
  • musicpsy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
Thanks!
I just followed the steps, but at the end, the player did not appear, but the words in the code appeared in the preview.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.116 seconds
Donation Image