Questions tagged [node-lame]

6 questions
5
votes
0 answers

Converting a PCM file to .mp3 (Nodejs 12)

I'm making a Discord bot and at one point I have to save an audio with the PCM format voiceChannel.join().then(connection => { const fs = require('fs'); // Create a ReadableStream of s16le PCM audio var usee = message.member; const…
Zwoosks
  • 51
  • 3
5
votes
1 answer

Mp3 audio in node.js with gain control

I'm trying to play some mp3 files in node.js. The thing is that I manage to play them one by one, or even, as I want in parallel. But what I also want is to be able to control the amplitude (gain) to be able to create a crossfade in the end. Could…
jonepatr
  • 7,769
  • 7
  • 30
  • 53
3
votes
1 answer

Why does node-lame module saves mp3 file with a high pitched/fast playback speed?

I am trying to record audio from the browser and stream it as raw audio (PCM) to my node server where I want to save to it in .mp3 format. I am using node-lame module on my server for creating an mp3 file from the PCM audio stream. The problem here…
1
vote
1 answer

Why doesn't node-lame encode properly (nodeJS library)?

I've been trying to use the node-lame library to encode a file from the uploaded bitrate to 32 kbps to save space the same way I do it with sharp to compress my images. My code first checks if the file is an audio file. If it is it then makes the…
Nik
  • 96
  • 7
1
vote
2 answers

How to capture the first 10 seconds of an mp3 being streamed over HTTP

disclaimer: newbie to nodeJS and audio parsing I'm trying to proxy a digital radio stream through an expressJS app with the help of node-icecast which works great. I am getting the radio's mp3 stream, and via node-lame decoding the mp3 to PCM and…
mfink
  • 1,309
  • 23
  • 32
1
vote
2 answers

how to play sound on raspberry pi - after startup without login

i need to play sound on the raspberry pi with a node.js script. Everything is fine when i'm starting the script from the commandline myself. When i run the same script after startup out of the /etc/rc.local script i see my running process when doing…
user934801
  • 1,119
  • 1
  • 12
  • 30