Questions tagged [node-speaker]
8 questions
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
Node Passthrough Stream, how to properly address piped objects?
Below are some code snippets from three of my functions to start, pause, and resume a readable stream in Node.js. However, I would like a better way to control the Speaker() object besides initiating another one.
I am using the spotify-web module to…

pdago
- 107
- 2
- 9
1
vote
0 answers
Can't use stream in onclick callback
const ToneStream = require('tone-stream')
const Speaker = require('speaker');
const blessed…

GameKyuubi
- 681
- 1
- 10
- 25
1
vote
1 answer
Error installing node-speaker with npm
I've installed some packages before with no problems, but with this one, I've tried lot of things with same results.
user@laptop:~/Mayhem/server/node_modules$ npm install speaker
npm WARN package.json spotify-server@0.0.0 No README.md file…

Juanmito
- 11
- 1
- 3
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
0
votes
1 answer
How to stop a stream after .pipe()?
const speaker = new Speaker({
channels: 2,
bitDepth: 16,
sampleRate: 44100,
device: null,
});
stream.pipe(speaker);
I need it for break playing sound. Stream is instance of Readable.

Alexey X
- 1
0
votes
1 answer
node speaker Process finished with exit code 132 (interrupted by signal 4: SIGILL)
I'm trying to use node-speaker to speak an Amazon polly stream, once read I'm saving into a file a cache and second time I want to read that file with the speaker.
It works well but the script is exiting with Process finished with exit code 132…

jaumard
- 8,202
- 3
- 40
- 63
0
votes
1 answer
Use npm speaker as output for GridFS download stream - NodeJS
I am creating a music streaming service using the MEAN stack. So far, I have written code that uploads an mp3 file to my MongoDB database, using GridFS, and I can also download that file to the root folder of my site.
However, I do not want the…

Dylan Baxter
- 31
- 5