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

Encoding in wav format #45

Closed cliff-ehla closed 4 years ago

cliff-ehla commented 4 years ago

Hi Kagami,

First of all, thanks for the package. It's hard to record on iOS, but it's possible with the library.

My projects employ a voice recognition API but that requires a .wav format audio data, which is not the default encoded format from vmsg.

I know the core of the encoding is in defined in the C layer, but I don't have any experience with C. I found a relevant function vmsg_encode which sounds like the place to define the encoding, but I have no idea how could I modify on it.. Would appreciate your help if you add an audio encoding format for .wav apart from the default .mp3.

Kagami commented 4 years ago

Hi,

Have you tried https://github.com/mattdiamond/Recorderjs library? It does exactly that.