Check out the LimeSurvey source code on GitHub!

Recording audio

More
2 years 7 months ago #109103 by mhkuu
We're thinking about having a survey in which a participant can record an audio fragment, and that this fragment then is saved in the survey results. I suppose we should use a library like recorder.js for this.

Would it be worthwhile to create a custom question type for this (is that even supported?) or do you think this should be possible to create using the current question types and a bit of JavaScript? Has anyone maybe done this before?

Thanks for your ideas!

P.S. As a return gift, we do know how to playback audio with the new HTML5-standard, and written some documentation about this on our university website .

Please Log in to join the conversation.

More
2 years 7 months ago - 2 years 7 months ago #109165 by jelo
recorder.js is using Flash. Currently LimeSurvey is missing a questiontype browsercheck/browercompatibility to prevent participants running into questions which are not displayable by their browser.

In terms of security I am unsure how the upload function can be implemented without revealing location of storage.

And since you mentioned HTML5 in your link, take a loot at capturing audio via HTML 5 as well.
www.html5rocks.com/en/tutorials/getusermedia/intro/

A question type for capturing audio / video should be based on HTML 5. Fallback for Flash would be nice.

Take a look at this too:
code.google.com/p/wami-recorder/
Last Edit: 2 years 7 months ago by jelo.
The following user(s) said Thank You: mhkuu

Please Log in to join the conversation.

More
2 years 6 months ago #110142 by mhkuu
Thanks jelo, that was very helpful. I added an audio recording question type to LimeSurvey that sort of hops onto parts of the upload file question type. It uses HTML5 for both recording and replaying audio, so it's unfortunately limited to a few browsers. For recording the new functionality relies heavily upon Chris Wilson's audio recording code: github.com/cwilso/AudioRecorder .

I created a branch on GitHub for those interested with the resulting code: github.com/mhkuu/LimeSurvey . The branch is in accordance with yesterday's release (140618). Absolutely no guarantees of course, haven't been able to test the whole flow properly yet, and it has been my first time diving into the LimeSurvey source code.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form