4

In online social learning app, we want participants to be able to record short audio clips to share with others. Typically a recording will be a spoken word or a single sentence.

I've been looking at WebRTC. I understand how to create and share an audio stream. However, we want the participant to be able to start the recording manually, and to stop it when it's complete (or after 15 seconds if that is sooner). Ideally, we want to compress the resulting file to save bandwidth, and upload it to a database.

Can anyone recommend any tutorials on how to do this?

Peter O.
  • 32,158
  • 14
  • 82
  • 96
James Newton
  • 6,623
  • 8
  • 49
  • 113

1 Answers1

1

Maybe RecordRTC help you. https://webrtc-experiment.appspot.com/RecordRTC/

Try this demo:

https://github.com/muaz-khan/WebRTC-Experiment/tree/master/AudioVideoRecorder

In the demo; MediaRecorder API is used to record audio streams. It is exactly what you want; however current support is Firefox Nightly (only).

Chrome team also started discussing possible scenarios; and impacts. They'll implement MediaRecorder API soon.

Muaz Khan
  • 7,138
  • 9
  • 41
  • 77
  • 1
    Hi Muaz! Thanks for the link. I've also found this: [link](http://www.sajithmr.me/jrecorder-jquery) – James Newton Mar 08 '13 at 16:39
  • 2
    Having just tried the RecordRTC on chrome 29 on ubuntu, it doesn't seem to work, as in, everything seems to go well, except the resulting file is silent. According to http://code.google.com/p/chromium/issues/detail?id=252279, it looks like this only works in OSX. Is that right? – Laurent S Jul 10 '13 at 22:58
  • 1
    It works on windows too (except XP)...read list of possible failures here: https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC#possible-issuesfailures – Muaz Khan Jul 10 '13 at 23:33
  • Is there no Linux support at all? – Jim Garrison Jul 17 '13 at 04:24