Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Recording audio

More
9 years 9 months ago #109103 by mhkuu
Recording audio was created 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 .
The topic has been locked.
More
9 years 9 months ago - 9 years 9 months ago #109165 by jelo
Replied by jelo on topic Recording audio
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/

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 9 years 9 months ago by jelo.
The following user(s) said Thank You: mhkuu
The topic has been locked.
More
9 years 8 months ago #110142 by mhkuu
Replied by mhkuu on topic Recording audio
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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose