- Posts: 15
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How can audio files be attached?
- musicpsy
- Topic Author
- Offline
- New Member
Less
More
12 years 2 months ago #72824
by musicpsy
How can audio files be attached? was created by musicpsy
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
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 topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
12 years 2 months ago #72827
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How can audio files be attached?
Have a look at this workaround. It's kinda old but should still work.
docs.limesurvey.org/Workarounds%3A+Quest...g_audio_in_questions
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.
The topic has been locked.
- musicpsy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
12 years 2 months ago #72829
by musicpsy
Replied by musicpsy on topic How can audio files be attached?
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.
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 topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
12 years 2 months ago #72830
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How can audio files be attached?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
- musicpsy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
12 years 2 months ago #72831
by musicpsy
Replied by musicpsy on topic How can audio files be attached?
many thanks! I will try!
The topic has been locked.
- musicpsy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
12 years 2 months ago #72832
by musicpsy
Replied by musicpsy on topic How can audio files be attached?
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 topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
12 years 2 months ago #72840
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic How can audio files be attached?
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
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- musicpsy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
12 years 2 months ago #72948
by musicpsy
Replied by musicpsy on topic How can audio files be attached?
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.
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 topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
12 years 2 months ago - 12 years 2 months ago #72952
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How can audio files be attached?
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.
3) The path to the file will then be:
4) so the embed code would look something like:
1) Place the file in a zipped archive.
2) Go to Survey properties --> General setting --> Resources, browse to your zipped folder and upload it.
3) The path to the file will then be:
Code:
upload/surveys/yourSurveyID/yourFile.wav
4) so the embed code would look something like:
Code:
<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.
Attachments:
Last edit: 12 years 2 months ago by tpartner.
The topic has been locked.
- musicpsy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
12 years 2 months ago #72953
by musicpsy
Replied by musicpsy on topic How can audio files be attached?
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.
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 topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
12 years 2 months ago #72955
by tpartner
docs.limesurvey.org/tiki-index.php?page=..._etc._in_LimeSurvey_
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic How can audio files be attached?
Did you disable the XSS filter and place the code in the source of the question?...but the words in the code appeared in the preview. ...
docs.limesurvey.org/tiki-index.php?page=..._etc._in_LimeSurvey_
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- musicpsy
- Topic Author
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
12 years 2 months ago #72979
by musicpsy
Replied by musicpsy on topic How can audio files be attached?
Thank you for your reminding! I just turned it off.
Then I tried three kinds of audio files: wav, wma, mp3 (the file should not be larger than 2M), the results were:
- the player appeared only with wma file in the preview, but I don't know why no sound came out when I pressed the play button.
- there was no player with wav and mp3 files, but a scroll bar in the preview.
Then I tried three kinds of audio files: wav, wma, mp3 (the file should not be larger than 2M), the results were:
- the player appeared only with wma file in the preview, but I don't know why no sound came out when I pressed the play button.
- there was no player with wav and mp3 files, but a scroll bar in the preview.
The topic has been locked.