Welcome, Guest
Username: Password: Remember me

TOPIC: Recording audio

Recording audio 2 months 3 hours ago #109103

  • mhkuu
  • mhkuu's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 1
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 administrator has disabled public write access.

Recording audio 1 month 4 weeks ago #109165

  • jelo
  • jelo's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 467
  • Thank you received: 52
  • Karma: 16
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: 1 month 4 weeks ago by jelo.
The administrator has disabled public write access.
The following user(s) said Thank You: mhkuu

Recording audio 1 month 3 days ago #110142

  • mhkuu
  • mhkuu's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 1
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 administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.102 seconds
Donation Image