chrisguttandin / extendable-media-recorder

An extendable drop-in replacement for the native MediaRecorder.
MIT License
258 stars 13 forks source link

Get audio as pcm_s16le #681

Closed ma-elation closed 9 months ago

ma-elation commented 9 months ago

Hello, I need to get the data as pcm_s16le for sending to an API. Can you please share how to do this?

chrisguttandin commented 9 months ago

Hi @ma-elation,

the cleanest solution would probably be to write your own encoder similar to the existing extendable-media-recorder-wav-encoder.

But you could also re-use the wav-encoder and skip the first 44 bytes. All that is left ist the PCM data as signed 16 bit little endian integers.

ramiel commented 9 months ago

@ma-elation have you done this?