Voice recording plugin


(Pawel W) #1

A simple voice recording plugin, that enables posting voice messages recorded directly in the browser of your desktop or mobile.

Check english.best community forum to see it in action. The code is hosted on Github.

The library uses a slightly modified version of Microm library, which features RecordRTC and lamejs.

After the standard installation, enable composer_audio_upload_enabled in the settings.

When composing a new message, simply click on the microphone icon to start recording. After you’re done, your recording will be converted to mp3 for enhanced cross-browser compatibility.

image

image

Currently the reencoding is done using lamejs, which isn’t optimal and can take some time for longer voice messages or on slower devices.

If for some reason it doesn’t work on your device, I’d be grateful if you could indicate the device, browser and system version. The testing wasn’t extremely extensive, but we have some users using it already. I count on some input and / or pull requests :slight_smile:


(Bank Live) #2

Thank you very much :smiley:


(Tobias Eigen) #3

Cool! We regularly get asked for the ability to add a voice message or even a video recording directly to posts. I’ll try this out and let you know how it works out!

Some feedback:

  • mp3, the file type of the uploaded audio recording, is by default not allowed as an upload type. suggest adding a note to the install instructions to enable mp3 uploads.
  • an obvious admin setting to add would be to allow limiting the length of audio recording that can be uploaded. right now it seems that the recording can go on indefinitely though I have not tried it. A max of say 30 seconds or 2 minutes would be suitable for some communities. The utility of an audio recording diminishes the longer it gets, so some default max eg 5 minutes would be sensible.
  • an admin setting to limit by trust level would be helpful
  • a progress indicator during the recording would be helpful, to indicate long the recording is getting, as well as an audio level indicator to show that the audio recording is actually working.
  • the file size of the saved recording is displayed in kilobytes, not megabytes, so eg a 3 minute recording is 2000+. It would be nice to see it in mb.
  • as you indicated, it takes a while to save even a three minute recording, so a progress indicator of the saving process would be helpful.

Is there any scope or ability to add video recording to this plugin? It would be very welcome in my community.


(Tobias Eigen) #4

And a quick follow-up after spending a bit of time with this plugin. While looking at

I looked around here but was not able to immediately find posts containing voice recordings (turns out it’s buried in this topic). Some icon (maybe microphone?) indicating topics containing voice recordings might be a good idea, as well as the ability to filter by posts containing voice recordings in the search. Even searching mp3 did not take me straight to posts containing recordings. E.g. a filter to only return topics/posts that “include mp3 recordings”:

Also, just for giggles I recorded a 20 minute recording, then tried to upload it - but the upload failed because it was larger than the maximum size allowed. The recording was then lost, which in this case was no big deal… it was only a recording of me taking a nap, after all. :zzz: But if I had actually spent 20 minutes recording myself saying something important I would have been pretty sad to lose it! So ideally the plugin would stop the recording before the limit is reached, or at least provide a fallback method to save the recording to my device so I can upload it elsewhere and share the link as suggested by the error message.

Update: not sure this is a surprise but this plugin does not work on mobile, using chrome on ios. The record button just doesnt do anything.

Another update: occurs to me the record button could live in the composer options submenu. That would be better in my opinion.


#5

Many thanks for all your feedback, we’ll try to implement some of your suggestions in the next update.


(Tobias Eigen) #6

Awesome! I remain very interested in this plugin. Let me know when you need more testing or feedback. :rocket:


(Keith John Hutchison) #7

Would it possible to allow the recording to be saved somewhere else and then link to that in the plugin.

Example. Say the member had a soundcloud.com account and the recording was sent to soundcloud as a private or public recording.


(Markus) #8

Intressting project, I really like it.

How about background recording in cases, to allow parallel note taking? This would be my killer feature :wink: Do you know the iOS App Notability? This is currently my way to combine notes with recordings. It’s awesome, because Notability is able to highlight all changes made while the voice is keep talking… I guess this might be too much here? :stuck_out_tongue_winking_eye: