Kagami / vmsg

:musical_note: Library for creating voice messages
https://kagami.github.io/vmsg/
Creative Commons Zero v1.0 Universal
348 stars 58 forks source link

Using it just to encode AudioBuffer (or Float32Array) to blob? #33

Open Catsvilles opened 5 years ago

Catsvilles commented 5 years ago

Could we use this library just for converting Web Audio API buffers to mp3? If so, maybe there is a good example? Thank you!

Kagami commented 5 years ago

Technically yes, but currently there is no API for that. You could look at implementation of Recorder class. It handles onaudioprocess event of its internal audio node and might be modified to iterate over existing array of samples instead.