devowlio / node-lame

LAME is an open-source encoder that encodes and decodes audio to the MP3 file format. For all MP3 needs a Node.js wrapper of the full LAME command line.
Other
82 stars 9 forks source link

Use a float array for PCM input #33

Open patrykk21 opened 8 months ago

patrykk21 commented 8 months ago

Hey, the project works great. Thank you!

I have a question, in my use case I have a raw PCM input that's streaming from a service in float array format.

To make node-lame work I had to convert such array to integers.

Is there a way to avoid such conversion?

Thank you. :)

jankarres commented 8 months ago

Unfortunately I am not familiar with PCM inputs. Do you have a code example of how you have implemented the conversion so far? Then we can check if this feature can be included in node-lame?