Hi, I've seen #272 but I don't know the current status of that, also I have one more question, so here goes.
If there is no straightforward way to achieve these things, some kind of a hint or direction would be much appreciated.
@thijstriemstra, tagging you as the creator of the awesome microphone plugin.
Thanks.
I wonder how these guys manage to do it: http://waveformjs.org/#fly
I'm trying to dig through https://github.com/soundcloud/waveformjs
Personally I would like to create a waveform that shrinks as it becomes longer so it's basically always the same size (what you see in software like Ableton, Logic etc). That 'fly example' is not the same effect unfortunately. I created something that would grab the first waveform, render it at 100%, the next waveform would be attached at 50% of the original waveform and that original waveform is scaled to 50%, the third waveform goes at 66% etc. Unfortunately this was very slow with Canvas but it was pretty much working.
I get that, but all I need is about 15-20 seconds of recording, so I don't think shrinking would be needed in my case.
@thijstriemstra and @d0ragon, have you made any progress on this?
Thanks!
I've been trying to work with this as well.
Looking at the plugin, it seems that it might not actually store the data at all? The play command on this looks like it might actually be a trigger to start recording rather than play back - I can't seem to get the resulting data out of it.
same for me the recorder by mic is not working for me
wavesurfer.js currently does not have a ' recorder by mic' @davidtorroija so not sure what you mean.
wavesurfer.js currently does not have a ' recorder by mic' @davidtorroija so not sure what you mean.
I'm using the "microphone" plugin, but I don't know how to get the recorded audio and play, save, get the buffer etc
@davidtorroija use videojs-record for example, e.g. https://collab-project.github.io/videojs-record/examples/audio-only.html or help implement #1030
@thijstriemstra ok I will use that library I think, thanks
Guys, what do you think of the following implementation:
https://codepen.io/Sambego/pen/VmBJJN
I Created a POC of this functionality working, I'm rendering in canvas the recording peaks of sound in real time https://codepen.io/davidtorroija/pen/ZZzLpb?editors=0010
It was hard and I get help from an expert in web audio here: https://stackoverflow.com/questions/55407563/web-audio-api-and-javascript-get-the-correct-picks-from-microphone
@davidtorroija Thank you for sharing with this treasure!
I also saw that you mentioned the sample (https://online-voice-recorder.com/es/) and I'm wondering how I can achieve the same selection (start and end) and be able to trim and record over it.

@davidtorroija that looks really coo! Could you rework this into a pull request so it can be used in wavesurfer.js by others as well?
@davidtorroija Thank you for sharing with this treasure!
I also saw that you mentioned the sample (https://online-voice-recorder.com/es/) and I'm wondering how I can achieve the same selection (start and end) and be able to trim and record over it.
Thanks for your comments!, and yes @thijstriemstra, @alisherakb I think that is harder! haha, I do not want to promise anything, but if I find the time I will keep investigate this integration with wave surfer
Check it out to record and replay audio from microphone plugin:
https://github.com/katspaugh/wavesurfer.js/issues/1515#issuecomment-590705075
Most helpful comment
I Created a POC of this functionality working, I'm rendering in canvas the recording peaks of sound in real time https://codepen.io/davidtorroija/pen/ZZzLpb?editors=0010
It was hard and I get help from an expert in web audio here: https://stackoverflow.com/questions/55407563/web-audio-api-and-javascript-get-the-correct-picks-from-microphone